Delete Dockerfile
Browse files- Dockerfile +0 -49
Dockerfile
DELETED
|
@@ -1,49 +0,0 @@
|
|
| 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 |
-
# System deps: R + compilers + common R pkg build deps
|
| 11 |
-
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 12 |
-
r-base \
|
| 13 |
-
r-base-dev \
|
| 14 |
-
build-essential \
|
| 15 |
-
curl \
|
| 16 |
-
git \
|
| 17 |
-
libcurl4-openssl-dev \
|
| 18 |
-
libssl-dev \
|
| 19 |
-
libxml2-dev \
|
| 20 |
-
&& rm -rf /var/lib/apt/lists/*
|
| 21 |
-
|
| 22 |
-
# Install required R packages
|
| 23 |
-
RUN R -e "install.packages(c('forecast','ggplot2','jsonlite','readr','dplyr','tidyr','stringr','lubridate','broom'), repos='https://cloud.r-project.org')"
|
| 24 |
-
|
| 25 |
-
WORKDIR /app
|
| 26 |
-
COPY . /app
|
| 27 |
-
|
| 28 |
-
# Python deps (from requirements.txt)
|
| 29 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 30 |
-
|
| 31 |
-
# Notebook execution deps
|
| 32 |
-
RUN pip install --no-cache-dir notebook ipykernel papermill
|
| 33 |
-
|
| 34 |
-
# Pre-install packages that the notebooks install via !pip install
|
| 35 |
-
# so papermill doesn't waste time or fail on them at runtime:
|
| 36 |
-
# datacreation.ipynb: beautifulsoup4 pandas matplotlib seaborn numpy textblob
|
| 37 |
-
# pythonanalysis.ipynb: pandas matplotlib seaborn numpy textblob faker transformers vaderSentiment
|
| 38 |
-
# Most are already in requirements.txt; add the extras:
|
| 39 |
-
RUN pip install --no-cache-dir textblob faker transformers
|
| 40 |
-
|
| 41 |
-
RUN python -m ipykernel install --user --name python3 --display-name "Python 3"
|
| 42 |
-
|
| 43 |
-
# R deps for notebook execution via papermill (IRkernel)
|
| 44 |
-
RUN R -e "install.packages('IRkernel', repos='https://cloud.r-project.org/')"
|
| 45 |
-
RUN R -e "IRkernel::installspec(user = FALSE)"
|
| 46 |
-
|
| 47 |
-
EXPOSE 7860
|
| 48 |
-
|
| 49 |
-
CMD ["python", "app.py"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|