abc1181 commited on
Commit
f93f416
·
verified ·
1 Parent(s): aadc8b7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -9
Dockerfile CHANGED
@@ -1,14 +1,12 @@
1
- # Use the official Playwright image which has all browser dependencies
2
  FROM mcr.microsoft.com/playwright/python:v1.40.0-jammy
3
 
4
- USER root
5
- RUN pip install --no-cache-dir flask flask-cors beautifulsoup4 playwright
6
- RUN playwright install chromium
7
-
8
  WORKDIR /app
9
- COPY app.py .
10
 
11
- # Hugging Face runs on port 7860
 
 
 
 
12
  EXPOSE 7860
13
- ENV HOME=/root
14
- CMD ["python3", "app.py"]
 
 
1
  FROM mcr.microsoft.com/playwright/python:v1.40.0-jammy
2
 
3
+ ENV PYTHONUNBUFFERED=1
 
 
 
4
  WORKDIR /app
 
5
 
6
+ # Install dependencies required for standard execution and data processing
7
+ RUN pip install --no-cache-dir flask flask-cors playwright pandas numpy requests beautifulsoup4
8
+ RUN playwright install chromium
9
+
10
+ COPY . .
11
  EXPOSE 7860
12
+ CMD ["python3", "-u", "app.py"]