Backup: 2025-06-07 19:48 - Script test
[Restore from backup: vip-coordinator-backup-2025-06-07-19-48-script-test]
This commit is contained in:
23
Dockerfile.e2e
Normal file
23
Dockerfile.e2e
Normal file
@@ -0,0 +1,23 @@
|
||||
FROM mcr.microsoft.com/playwright:v1.41.0-jammy
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy E2E test files
|
||||
COPY ./e2e/package*.json ./e2e/
|
||||
RUN cd e2e && npm ci
|
||||
|
||||
COPY ./e2e ./e2e
|
||||
|
||||
# Install Playwright browsers
|
||||
RUN cd e2e && npx playwright install
|
||||
|
||||
# Set up non-root user
|
||||
RUN useradd -m -u 1001 testuser && \
|
||||
chown -R testuser:testuser /app
|
||||
|
||||
USER testuser
|
||||
|
||||
WORKDIR /app/e2e
|
||||
|
||||
# Default command runs tests
|
||||
CMD ["npx", "playwright", "test"]
|
||||
Reference in New Issue
Block a user