Spaces:
Sleeping
Sleeping
Download Dockerfile from deva8217/superkart-forecast-api: direct link, hf CLI and curl.
- Browser
- Download file 573 Bytes
-
https://huggingface.co/spaces/deva8217/superkart-forecast-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/deva8217/superkart-forecast-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/deva8217/superkart-forecast-api/resolve/main/Dockerfile
573 Bytes
| # Use a lightweight Python base image | |
| FROM python:3.9-slim | |
| # Set working directory inside container | |
| WORKDIR /app | |
| # Install system-level dependencies (for pandas, scikit-learn) | |
| RUN apt-get update && apt-get install -y build-essential && rm -rf /var/lib/apt/lists/* | |
| # Copy and install Python dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy app code and trained model | |
| COPY app.py . | |
| COPY superkart_sales_forecast.pkl . | |
| # Expose port expected by Hugging Face Spaces | |
| EXPOSE 7860 | |
| # Start the Flask app | |
| CMD ["python", "app.py"] | |