Dmitry Beresnev commited on
Commit
daaf635
·
1 Parent(s): 565d677

fix dockerfile

Browse files
Files changed (1) hide show
  1. 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
- # Install Playwright browser binaries
41
- RUN python -m playwright install chromium
42
- RUN python -m playwright install-deps chromium
 
 
43
 
44
  # Copy application code
45
  COPY . .
46
 
47
- # Set Playwright environment variables
48
- ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
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