1 parent 27381ec commit 1955936Copy full SHA for 1955936
1 file changed
Dockerfile
@@ -4,8 +4,9 @@ FROM python:3.11-slim
4
# Set working directory
5
WORKDIR /app
6
7
-# Install system dependencies
+# Install system dependencies required by Playwright
8
RUN apt-get update && apt-get install -y \
9
+ wget \
10
curl \
11
&& rm -rf /var/lib/apt/lists/*
12
@@ -15,7 +16,9 @@ COPY requirements.txt ./
15
16
# Install Python dependencies using pip
17
RUN pip install --no-cache-dir -r requirements.txt
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
22
RUN playwright install --with-deps chromium
23
24
# Copy application code
0 commit comments