mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
- Add `Dockerfile` based on `mcr.microsoft.com/playwright:v1.57.0-jammy`. - Add `scripts/run-playwright-docker.sh` to build and run the container with volume mounts. - Add `.dockerignore` to prevent host `node_modules` from corrupting the build. - Update `README.md` with usage instructions.
19 lines
404 B
Docker
19 lines
404 B
Docker
# Base image matching the Playwright version in package.json
|
|
FROM mcr.microsoft.com/playwright:v1.57.0-jammy
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Copy package files
|
|
COPY package.json package-lock.json ./
|
|
|
|
# Install dependencies
|
|
# We use npm ci for a clean, deterministic install
|
|
RUN npm ci
|
|
|
|
# Copy the rest of the application source code
|
|
COPY . .
|
|
|
|
# Default command
|
|
CMD ["npm", "run", "test:visual"]
|