Skip to content

Commit 1955936

Browse files
committed
fix: improve comments for system dependencies and Playwright installation in Dockerfile
1 parent 27381ec commit 1955936

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ FROM python:3.11-slim
44
# Set working directory
55
WORKDIR /app
66

7-
# Install system dependencies
7+
# Install system dependencies required by Playwright
88
RUN apt-get update && apt-get install -y \
9+
wget \
910
curl \
1011
&& rm -rf /var/lib/apt/lists/*
1112

@@ -15,7 +16,9 @@ COPY requirements.txt ./
1516
# Install Python dependencies using pip
1617
RUN pip install --no-cache-dir -r requirements.txt
1718

18-
# Install Playwright browsers
19+
# Install Playwright browsers with system dependencies
20+
# Use PLAYWRIGHT_BROWSERS_PATH to install to a specific location
21+
ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
1922
RUN playwright install --with-deps chromium
2023

2124
# Copy application code

0 commit comments

Comments
 (0)