Update Dockerfile
Browse files- Dockerfile +16 -3
Dockerfile
CHANGED
|
@@ -1,12 +1,25 @@
|
|
|
|
|
| 1 |
FROM mcr.microsoft.com/playwright/python:v1.40.0-jammy
|
| 2 |
|
| 3 |
ENV PYTHONUNBUFFERED=1
|
| 4 |
WORKDIR /app
|
| 5 |
|
| 6 |
-
# Install
|
| 7 |
-
RUN pip install --no-cache-dir
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
RUN playwright install chromium
|
| 9 |
|
| 10 |
COPY . .
|
| 11 |
EXPOSE 7860
|
| 12 |
-
CMD ["python3", "-u", "app.py"]
|
|
|
|
| 1 |
+
Dockerfile
|
| 2 |
FROM mcr.microsoft.com/playwright/python:v1.40.0-jammy
|
| 3 |
|
| 4 |
ENV PYTHONUNBUFFERED=1
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
+
# Install Jupyter Kernel Gateway + all useful libraries
|
| 8 |
+
RUN pip install --no-cache-dir \
|
| 9 |
+
flask flask-cors \
|
| 10 |
+
jupyter_kernel_gateway \
|
| 11 |
+
ipykernel \
|
| 12 |
+
jupyter_client \
|
| 13 |
+
nbformat \
|
| 14 |
+
playwright \
|
| 15 |
+
pandas numpy matplotlib seaborn scipy \
|
| 16 |
+
requests beautifulsoup4 pillow \
|
| 17 |
+
openpyxl PyPDF2 python-docx \
|
| 18 |
+
plotly kaleido
|
| 19 |
+
|
| 20 |
+
# Install Playwright browsers
|
| 21 |
RUN playwright install chromium
|
| 22 |
|
| 23 |
COPY . .
|
| 24 |
EXPOSE 7860
|
| 25 |
+
CMD ["python3", "-u", "app.py"]
|