Upload Dockerfile
Browse files- Dockerfile +26 -0
Dockerfile
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.10-slim
|
| 2 |
+
|
| 3 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
| 4 |
+
ENV PYTHONDONTWRITEBYTECODE=1
|
| 5 |
+
ENV PYTHONUNBUFFERED=1
|
| 6 |
+
|
| 7 |
+
ENV GRADIO_SERVER_NAME=0.0.0.0
|
| 8 |
+
ENV GRADIO_SERVER_PORT=7860
|
| 9 |
+
|
| 10 |
+
WORKDIR /app
|
| 11 |
+
COPY . /app
|
| 12 |
+
|
| 13 |
+
# Python deps (from requirements.txt)
|
| 14 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 15 |
+
|
| 16 |
+
# Notebook execution deps
|
| 17 |
+
RUN pip install --no-cache-dir notebook ipykernel papermill
|
| 18 |
+
|
| 19 |
+
# Pre-install packages the notebooks use via !pip install
|
| 20 |
+
RUN pip install --no-cache-dir textblob faker vaderSentiment transformers
|
| 21 |
+
|
| 22 |
+
RUN python -m ipykernel install --user --name python3 --display-name "Python 3"
|
| 23 |
+
|
| 24 |
+
EXPOSE 7860
|
| 25 |
+
|
| 26 |
+
CMD ["python", "app.py"]
|