-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (22 loc) · 886 Bytes
/
Dockerfile
File metadata and controls
32 lines (22 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Use official Playwright image with all browsers; version should match CI
FROM mcr.microsoft.com/playwright:v1.55.0-noble
# Install system packages needed for development (if any)
# RUN apt-get update && apt-get install -y <your-packages>
# Set working directory
WORKDIR /workspace
# Node will run as root; set HOME for consistency
ENV HOME=/root
# Copy dependency files first for caching
COPY package.json package-lock.json .nvmrc ./
# Install npm dependencies; use --legacy-peer-deps if needed for monorepos, etc.
RUN npm ci
# Install Playwright browsers and dependencies (again, for local/CI parity)
RUN npx playwright install --with-deps
# Copy the rest of the project files
COPY . .
# Expose default Storybook port
EXPOSE 3000
# Expose port for reports if there are test failures
EXPOSE 9323
# Default entrypoint; override in docker-compose or docker run
CMD [ "bash" ]