vibetunnel/web/Dockerfile
Peter Steinberger 1ee6d50bab fix: Git repository integration test - properly set up Git repository state
- Fix the failing test 'should include Git info in session creation request'
- Test now properly calls checkGitRepository() to populate currentBranch and selectedBaseBranch
- Ensures Git info is correctly included in session creation requests when repository is detected
- Fixes test by making selectedBaseBranch match currentBranch to avoid branch switching warning path

Test was failing because gitRepoPath was undefined in request body, now properly includes Git repo path and branch information.
2025-08-02 03:02:19 +02:00

40 lines
No EOL
888 B
Docker

# Use Node.js 22 as base image to support npm beta
FROM node:22-slim
# Install system dependencies required for node-pty and other native modules
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
build-essential \
git \
curl \
libpam0g-dev \
&& rm -rf /var/lib/apt/lists/*
# Install latest npm (11.5.2 as of August 2025)
RUN npm install -g npm@latest
# Set working directory
WORKDIR /app
# Copy package files
COPY package.json pnpm-lock.yaml ./
COPY node-pty/package.json ./node-pty/
# Install pnpm
RUN npm install -g pnpm@latest
# Copy all source code first (needed for postinstall scripts)
COPY . .
# Install dependencies
RUN pnpm install --frozen-lockfile
# Skip build for now - just test with source files
# RUN pnpm run build:npm
# Expose the default port
EXPOSE 4020
# Default command for testing
CMD ["pnpm", "run", "test:ci"]