Spaces:
Sleeping
Sleeping
Download Dockerfile from handex/DisasterTweetsAnalysis: direct link, hf CLI and curl.
- Browser
- Download file 639 Bytes
-
https://huggingface.co/spaces/handex/DisasterTweetsAnalysis/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/handex/DisasterTweetsAnalysis/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/handex/DisasterTweetsAnalysis/resolve/main/Dockerfile
639 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # System dependencies for TensorFlow | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| curl \ | |
| git \ | |
| libhdf5-dev \ | |
| libblas-dev \ | |
| liblapack-dev \ | |
| gfortran \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements | |
| COPY requirements.txt ./ | |
| RUN pip install --upgrade pip | |
| RUN pip install -r requirements.txt | |
| # Copy entire src directory (includes model files & app) | |
| COPY src/ ./src/ | |
| EXPOSE 8501 | |
| HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health | |
| ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"] |