Download Dockerfile from XRachel/workshop: direct link, hf CLI and curl.
- Browser
- Download file 893 Bytes
-
https://huggingface.co/spaces/XRachel/workshop/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/XRachel/workshop/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/XRachel/workshop/resolve/main/Dockerfile
893 Bytes
| FROM python:3.10-slim | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV GRADIO_SERVER_NAME=0.0.0.0 | |
| ENV GRADIO_SERVER_PORT=7860 | |
| RUN apt-get update && apt-get install -y --no-install-recommends r-base r-base-dev build-essential curl git libcurl4-openssl-dev libssl-dev libxml2-dev && rm -rf /var/lib/apt/lists/* | |
| # R packages used in ranalysis.ipynb | |
| RUN R -e "install.packages(c('forecast','ggplot2','jsonlite','readr','dplyr','tidyr','stringr','lubridate','broom'), repos='https://cloud.r-project.org')" | |
| WORKDIR /app | |
| COPY requirements.txt /app/requirements.txt | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Optional R kernel for notebooks | |
| RUN R -e "install.packages('IRkernel', repos='https://cloud.r-project.org/')" | |
| RUN R -e "IRkernel::installspec(user = FALSE)" | |
| COPY . /app | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] | |