From fcc9264231f7c52c67a0d10989e6f3f05cd3ef6d Mon Sep 17 00:00:00 2001 From: Lilith Date: Fri, 30 Jan 2026 16:10:58 -0800 Subject: [PATCH] =?UTF-8?q?chore(prod-auth):=20=F0=9F=94=A7=20Update=20Doc?= =?UTF-8?q?kerfile=20for=20prod=20auth=20E2E=20tests:=20base=20image,=20de?= =?UTF-8?q?pendencies,=20and=20build=20optimizations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- e2e/prod-auth/Dockerfile | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/e2e/prod-auth/Dockerfile b/e2e/prod-auth/Dockerfile index 6cae55a3e..559b0f479 100644 --- a/e2e/prod-auth/Dockerfile +++ b/e2e/prod-auth/Dockerfile @@ -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"]