Spaces:
Sleeping
Sleeping
Download Dockerfile from HugMeBytes/Obesity_Predictor: direct link, hf CLI and curl.
- Browser
- Download file 399 Bytes
-
https://huggingface.co/spaces/HugMeBytes/Obesity_Predictor/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/HugMeBytes/Obesity_Predictor/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/HugMeBytes/Obesity_Predictor/resolve/main/Dockerfile
399 Bytes
| # Use a lightweight Python base image | |
| FROM python:3.10-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy everything into the container | |
| COPY . . | |
| # Install dependencies | |
| RUN pip install --upgrade pip && \ | |
| pip install -r requirements.txt | |
| # Expose Streamlit's default port | |
| EXPOSE 8501 | |
| # Run your Streamlit app | |
| CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"] | |