Spaces:
Sleeping
Sleeping
Download Dockerfile from jsantangelo/atriumsample: direct link, hf CLI and curl.
- Browser
- Download file 734 Bytes
-
https://huggingface.co/spaces/jsantangelo/atriumsample/resolve/14a4d0e2aa348c38cdbedce3b94de417751b6fa0/Dockerfile
- Command line
-
hf download hf://spaces/jsantangelo/atriumsample@14a4d0e2aa348c38cdbedce3b94de417751b6fa0/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/jsantangelo/atriumsample/resolve/14a4d0e2aa348c38cdbedce3b94de417751b6fa0/Dockerfile
734 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| ENV PYTHONUNBUFFERED=1 \ | |
| PORT=7860 \ | |
| STREAMLIT_SERVER_HEADLESS=true \ | |
| STREAMLIT_BROWSER_GATHERUSAGESTATS=false \ | |
| STREAMLIT_CONFIG_DIR=/app/.streamlit | |
| # minimal OS deps + tini for clean PID 1 | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| ca-certificates curl tini && rm -rf /var/lib/apt/lists/* | |
| # Python deps | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # App code | |
| COPY . . | |
| # avoid permission errors for Streamlit internal files | |
| RUN mkdir -p /app/.streamlit && chmod -R 777 /app/.streamlit | |
| EXPOSE 7860 | |
| ENTRYPOINT ["/usr/bin/tini", "--"] | |
| CMD ["streamlit", "run", "app.py", "--server.address=0.0.0.0", "--server.port=7860"] | |