Update Dockerfile
Browse files- Dockerfile +5 -8
Dockerfile
CHANGED
|
@@ -9,7 +9,6 @@ RUN apt-get update && apt-get install -y \
|
|
| 9 |
gnupg \
|
| 10 |
ca-certificates \
|
| 11 |
fonts-liberation \
|
| 12 |
-
libappindicator3-1 \
|
| 13 |
libasound2 \
|
| 14 |
libatk-bridge2.0-0 \
|
| 15 |
libatk1.0-0 \
|
|
@@ -20,17 +19,16 @@ RUN apt-get update && apt-get install -y \
|
|
| 20 |
libgtk-3-0 \
|
| 21 |
libnspr4 \
|
| 22 |
libnss3 \
|
| 23 |
-
libx11-xcb1 \
|
| 24 |
-
libxcb1 \
|
| 25 |
libxcomposite1 \
|
| 26 |
libxdamage1 \
|
| 27 |
-
libxext6 \
|
| 28 |
libxfixes3 \
|
| 29 |
libxrandr2 \
|
| 30 |
xvfb \
|
| 31 |
libpango-1.0-0 \
|
| 32 |
libpangocairo-1.0-0 \
|
| 33 |
-
|
|
|
|
|
|
|
| 34 |
--no-install-recommends \
|
| 35 |
&& apt-get clean \
|
| 36 |
&& rm -rf /var/lib/apt/lists/*
|
|
@@ -41,10 +39,9 @@ COPY ./requirements.txt /code/requirements.txt
|
|
| 41 |
# Install Python dependencies
|
| 42 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 43 |
|
| 44 |
-
# Install Playwright and browsers
|
| 45 |
RUN pip install playwright && \
|
| 46 |
-
playwright install
|
| 47 |
-
playwright install-deps
|
| 48 |
|
| 49 |
# Copy application code
|
| 50 |
COPY ./ /code/
|
|
|
|
| 9 |
gnupg \
|
| 10 |
ca-certificates \
|
| 11 |
fonts-liberation \
|
|
|
|
| 12 |
libasound2 \
|
| 13 |
libatk-bridge2.0-0 \
|
| 14 |
libatk1.0-0 \
|
|
|
|
| 19 |
libgtk-3-0 \
|
| 20 |
libnspr4 \
|
| 21 |
libnss3 \
|
|
|
|
|
|
|
| 22 |
libxcomposite1 \
|
| 23 |
libxdamage1 \
|
|
|
|
| 24 |
libxfixes3 \
|
| 25 |
libxrandr2 \
|
| 26 |
xvfb \
|
| 27 |
libpango-1.0-0 \
|
| 28 |
libpangocairo-1.0-0 \
|
| 29 |
+
libx11-xcb1 \
|
| 30 |
+
libxcb-dri3-0 \
|
| 31 |
+
libxss1 \
|
| 32 |
--no-install-recommends \
|
| 33 |
&& apt-get clean \
|
| 34 |
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
| 39 |
# Install Python dependencies
|
| 40 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 41 |
|
| 42 |
+
# Install Playwright and download browsers explicitly
|
| 43 |
RUN pip install playwright && \
|
| 44 |
+
python -m playwright install --with-deps chromium
|
|
|
|
| 45 |
|
| 46 |
# Copy application code
|
| 47 |
COPY ./ /code/
|