Update Dockerfile
Browse files- 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 |
-
|
| 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 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
EXPOSE 7860
|
| 13 |
-
|
| 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"]
|
|
|