Spaces:
Sleeping
Sleeping
Download Dockerfile from ncsdecoopman/ExtremePrecipit: direct link, hf CLI and curl.
- Browser
- Download file 513 Bytes
-
https://huggingface.co/spaces/ncsdecoopman/ExtremePrecipit/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ncsdecoopman/ExtremePrecipit/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ncsdecoopman/ExtremePrecipit/resolve/main/Dockerfile
513 Bytes
| FROM python:3.11-slim | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| COPY download_data.py . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| RUN pip install huggingface_hub | |
| RUN rm -rf ~/.cache/huggingface/hub && \ | |
| python download_data.py | |
| COPY . . | |
| EXPOSE 7860 | |
| ENV MPLCONFIGDIR=/tmp/matplotlib | |
| ENV PYTHONPATH=/app | |
| CMD ["streamlit", "run", "main.py", "--server.port=7860", "--server.address=0.0.0.0"] | |