25 lines
598 B
Text
Executable file
25 lines
598 B
Text
Executable file
# =============================================================================
|
|
# E2E Test Runner Dockerfile
|
|
# =============================================================================
|
|
FROM mcr.microsoft.com/playwright:v1.40.0-focal
|
|
|
|
WORKDIR /app
|
|
|
|
# Install pnpm
|
|
RUN npm install -g pnpm
|
|
|
|
# Copy package files
|
|
COPY package.json pnpm-lock.yaml ./
|
|
|
|
# Install dependencies
|
|
RUN pnpm install --no-frozen-lockfile
|
|
|
|
# Copy test files
|
|
COPY e2e/ ./e2e/
|
|
COPY vitest.e2e.config.ts ./
|
|
|
|
# Create test results directory
|
|
RUN mkdir -p test-results
|
|
|
|
# Default command runs the e2e tests
|
|
CMD ["pnpm", "test:e2e"]
|