-
Notifications
You must be signed in to change notification settings - Fork 136
Expand file tree
/
Copy pathDockerfile.test
More file actions
28 lines (22 loc) · 808 Bytes
/
Copy pathDockerfile.test
File metadata and controls
28 lines (22 loc) · 808 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
FROM mcr.microsoft.com/playwright:v1.55.0-noble
# Install Zola
RUN apt-get update && \
apt-get install -y wget && \
wget https://github.com/getzola/zola/releases/download/v0.23.2/zola-v0.23.2-x86_64-unknown-linux-gnu.tar.gz && \
tar -xzf zola-v0.23.2-x86_64-unknown-linux-gnu.tar.gz && \
mv zola /usr/local/bin/ && \
chmod +x /usr/local/bin/zola && \
rm zola-v0.23.2-x86_64-unknown-linux-gnu.tar.gz && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Install dependencies first for better caching
COPY package*.json ./
RUN npm ci
# Copy the entire project
COPY . .
# Install Playwright browsers (they should already be in the base image)
RUN npx playwright install --with-deps chromium webkit
# Default command
CMD ["npm", "test"]