Spaces:
Sleeping
Sleeping
Download Dockerfile from Thiresh/FoodImageClassification: direct link, hf CLI and curl.
- Browser
- Download file 525 Bytes
-
https://huggingface.co/spaces/Thiresh/FoodImageClassification/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Thiresh/FoodImageClassification/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Thiresh/FoodImageClassification/resolve/main/Dockerfile
525 Bytes
| # Use a minimal Python base image | |
| FROM python:3.9-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy requirements first for caching | |
| COPY requirements.txt . | |
| # Install dependencies | |
| RUN pip install --upgrade pip && \ | |
| pip install -r requirements.txt | |
| # Copy all files (including model folder) into container | |
| COPY . . | |
| # Expose Streamlit port | |
| EXPOSE 8501 | |
| # Run the Streamlit app | |
| CMD ["streamlit", "run", "app.py", \ | |
| "--server.port=8501", \ | |
| "--server.address=0.0.0.0", \ | |
| "--server.enableXsrfProtection=false"] | |