Spaces:
Sleeping
Sleeping
too many deps pmo
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
|
@@ -24,6 +24,7 @@ RUN apt-get update && apt-get install -y \
|
|
| 24 |
libxcb1 \
|
| 25 |
libxkbcommon0 \
|
| 26 |
libasound2 \
|
|
|
|
| 27 |
&& apt-get clean \
|
| 28 |
&& rm -rf /var/lib/apt/lists/*
|
| 29 |
|
|
@@ -32,9 +33,10 @@ WORKDIR /app
|
|
| 32 |
COPY requirements.txt requirements.txt
|
| 33 |
RUN pip install -r requirements.txt
|
| 34 |
|
| 35 |
-
# Install Playwright browsers
|
| 36 |
ENV PLAYWRIGHT_BROWSERS_PATH=/tmp/playwright-browsers
|
| 37 |
RUN playwright install chromium
|
|
|
|
| 38 |
|
| 39 |
# Verify the installation and show the exact path
|
| 40 |
RUN playwright --version && ls -la /tmp/playwright-browsers/ && find /tmp/playwright-browsers/ -name "chrome" -type f
|
|
|
|
| 24 |
libxcb1 \
|
| 25 |
libxkbcommon0 \
|
| 26 |
libasound2 \
|
| 27 |
+
libcups2 \
|
| 28 |
&& apt-get clean \
|
| 29 |
&& rm -rf /var/lib/apt/lists/*
|
| 30 |
|
|
|
|
| 33 |
COPY requirements.txt requirements.txt
|
| 34 |
RUN pip install -r requirements.txt
|
| 35 |
|
| 36 |
+
# Install Playwright browsers and system dependencies
|
| 37 |
ENV PLAYWRIGHT_BROWSERS_PATH=/tmp/playwright-browsers
|
| 38 |
RUN playwright install chromium
|
| 39 |
+
RUN playwright install-deps
|
| 40 |
|
| 41 |
# Verify the installation and show the exact path
|
| 42 |
RUN playwright --version && ls -la /tmp/playwright-browsers/ && find /tmp/playwright-browsers/ -name "chrome" -type f
|