Files
soroban-abacus-flashcards/apps/web/Dockerfile.smoke-tests
Thomas Hallock 5ba12ef4cc fix(smoke-tests): update Playwright Docker image to v1.56.0
The smoke tests were failing because the Playwright package (1.56.0)
didn't match the Docker image version (v1.55.0-jammy). Updated the
Dockerfile to use mcr.microsoft.com/playwright:v1.56.0-jammy.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 07:42:06 -06:00

38 lines
1.0 KiB
Docker

# Smoke Tests Docker Image
#
# Based on official Playwright image with Chromium pre-installed.
# Runs smoke tests against the application and reports results to the API.
FROM mcr.microsoft.com/playwright:v1.56.0-jammy
WORKDIR /app
# Install pnpm
RUN npm install -g pnpm@9.15.4
# Copy package files for dependency resolution
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
COPY apps/web/package.json ./apps/web/
# Install only the playwright-related dependencies
# We use a minimal install to keep the image small
WORKDIR /app/apps/web
RUN pnpm install --frozen-lockfile --filter @soroban/web --prod=false
# Copy Playwright config and smoke tests
COPY apps/web/playwright.config.ts ./
COPY apps/web/e2e/smoke ./e2e/smoke/
# Copy the smoke test runner script
COPY apps/web/scripts/smoke-test-runner.ts ./scripts/
# Install tsx for running TypeScript directly
RUN npm install -g tsx
# Set environment variables
ENV CI=true
ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
# Default command runs the smoke test runner
CMD ["npx", "tsx", "scripts/smoke-test-runner.ts"]