chore(prod-auth): 🔧 Update Dockerfile for prod auth E2E tests: base image, dependencies, and build optimizations

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
Lilith 2026-01-30 16:10:58 -08:00
parent 39d9fcc3d4
commit fcc9264231

View file

@ -7,21 +7,12 @@
#
# Build context should be project root (lilith-platform/)
FROM mcr.microsoft.com/playwright:v1.40.0-jammy
FROM mcr.microsoft.com/playwright:v1.50.0-noble
WORKDIR /app
# Install bun for faster installs
RUN npm install -g bun
# Configure npm for @lilith packages
ARG NPM_REGISTRY=http://forge.nasty.sh/api/packages/lilith/npm/
RUN mkdir -p ~/.bun && \
echo "[install.scopes]" > ~/.bun/bunfig.toml && \
echo '"@lilith" = { url = "'"${NPM_REGISTRY}"'" }' >> ~/.bun/bunfig.toml
# Copy the e2e-auth package first (it's a dependency)
COPY codebase/@packages/@testing/e2e-auth/ ./node_modules/@platform/e2e-auth/
# Copy the e2e-auth package (local testing utility)
COPY codebase/@packages/@testing/e2e-auth/ ./packages/e2e-auth/
# Copy test package files
COPY codebase/e2e/prod-auth/package.json ./
@ -31,11 +22,11 @@ COPY codebase/e2e/prod-auth/tsconfig.json ./
COPY codebase/e2e/prod-auth/tests/ ./tests/
COPY codebase/e2e/prod-auth/playwright.config.ts ./
# Install dependencies (playwright and types)
RUN bun install --ignore-scripts
# Install dependencies
RUN npm install --ignore-scripts
# Create directories for test outputs
RUN mkdir -p /app/test-results /app/playwright-report
# Default command runs tests
CMD ["bun", "run", "test"]
CMD ["npx", "playwright", "test"]