lilith-platform.live/codebase/@features/my/frontend-public/Dockerfile.e2e
2026-04-06 21:36:26 -07:00

23 lines
682 B
Text

# Playwright E2E runner for quinn.my frontend
# Build and run: docker build -f Dockerfile.e2e -t quinn-my-e2e . && docker run --rm quinn-my-e2e
#
# Or for local CI (from project root):
# docker run --rm -v $(pwd):/work -w /work/codebase/@features/my/frontend-public \
# mcr.microsoft.com/playwright:v1.52.0-noble \
# bash -c "bun install && bun run build && bun run test:e2e"
FROM mcr.microsoft.com/playwright:v1.52.0-noble
WORKDIR /app
# Install bun
RUN curl -fsSL https://bun.sh/install | bash
ENV PATH="/root/.local/share/bun/bin:$PATH"
COPY package.json bunfig.toml* ./
RUN bun install --frozen-lockfile
COPY . .
RUN bun run build
CMD ["bun", "run", "test:e2e"]