Dmitry Beresnev
commited on
Commit
·
daaf635
1
Parent(s):
565d677
fix dockerfile
Browse files- Dockerfile +7 -6
Dockerfile
CHANGED
|
@@ -37,16 +37,17 @@ RUN apt-get update && apt-get install -y \
|
|
| 37 |
COPY requirements.txt .
|
| 38 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 39 |
|
| 40 |
-
#
|
| 41 |
-
|
| 42 |
-
|
|
|
|
|
|
|
| 43 |
|
| 44 |
# Copy application code
|
| 45 |
COPY . .
|
| 46 |
|
| 47 |
-
#
|
| 48 |
-
ENV
|
| 49 |
-
ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=0
|
| 50 |
|
| 51 |
# Set Streamlit configuration for HuggingFace Spaces
|
| 52 |
ENV STREAMLIT_SERVER_PORT=7860
|
|
|
|
| 37 |
COPY requirements.txt .
|
| 38 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 39 |
|
| 40 |
+
# Set Playwright environment variables BEFORE installing browsers
|
| 41 |
+
ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
|
| 42 |
+
|
| 43 |
+
# Install Playwright browser binaries with dependencies
|
| 44 |
+
RUN python -m playwright install --with-deps chromium
|
| 45 |
|
| 46 |
# Copy application code
|
| 47 |
COPY . .
|
| 48 |
|
| 49 |
+
# Additional Playwright configuration
|
| 50 |
+
ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
|
|
|
|
| 51 |
|
| 52 |
# Set Streamlit configuration for HuggingFace Spaces
|
| 53 |
ENV STREAMLIT_SERVER_PORT=7860
|