Spaces:
Runtime error
Runtime error
Download Dockerfile from hareshchander/Public_Health_Trend_Analyzer: direct link, hf CLI and curl.
- Browser
- Download file 893 Bytes
-
https://huggingface.co/spaces/hareshchander/Public_Health_Trend_Analyzer/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/hareshchander/Public_Health_Trend_Analyzer/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/hareshchander/Public_Health_Trend_Analyzer/resolve/main/Dockerfile
893 Bytes
| # ----- Base image ----- | |
| FROM python:3.11-slim | |
| # ----- Set working directory ----- | |
| WORKDIR /home/user/app | |
| # ----- Install system dependencies ----- | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| git \ | |
| git-lfs \ | |
| ffmpeg \ | |
| libsm6 \ | |
| libxext6 \ | |
| libgl1-mesa-glx \ | |
| cmake \ | |
| rsync \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # ----- Copy app files ----- | |
| COPY ./ /home/user/app | |
| # ----- Upgrade pip and install Python dependencies ----- | |
| RUN python -m pip install --upgrade pip | |
| COPY requirements.txt /tmp/requirements.txt | |
| RUN pip install --no-cache-dir -r /tmp/requirements.txt | |
| # ----- Streamlit config ----- | |
| RUN mkdir -p /home/user/.streamlit | |
| COPY .streamlit/config.toml /home/user/.streamlit/config.toml | |
| # ----- Expose port ----- | |
| EXPOSE 8501 | |
| # ----- Run the app ----- | |
| CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.headless=true"] | |