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

fix dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -8
Dockerfile CHANGED
@@ -37,18 +37,14 @@ RUN apt-get update && apt-get install -y \
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
54
  ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0
 
37
  COPY requirements.txt .
38
  RUN pip install --no-cache-dir -r requirements.txt
39
 
40
+ # Set Playwright to use system Chromium
41
+ ENV PLAYWRIGHT_BROWSERS_PATH=0
42
+ ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
43
+ ENV PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH=/usr/bin/chromium
 
44
 
45
  # Copy application code
46
  COPY . .
47
 
 
 
 
48
  # Set Streamlit configuration for HuggingFace Spaces
49
  ENV STREAMLIT_SERVER_PORT=7860
50
  ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0