Spaces:
Sleeping
Sleeping
Download Dockerfile from Retheesh/SuperKartSalesPrediction: direct link, hf CLI and curl.
- Browser
- Download file 665 Bytes
-
https://huggingface.co/spaces/Retheesh/SuperKartSalesPrediction/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Retheesh/SuperKartSalesPrediction/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Retheesh/SuperKartSalesPrediction/resolve/main/Dockerfile
665 Bytes
| # Use a lightweight Python image as the base image | |
| FROM python:3.12-slim | |
| # Set the working directory inside the container | |
| WORKDIR /app | |
| # Copy the requirements file into the container | |
| COPY requirements.txt . | |
| # Install the dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the application code into the container | |
| COPY app.py . | |
| COPY superkart_regression_model_v1.0.joblib . | |
| COPY scaler.joblib . | |
| COPY mrp_bins.joblib . | |
| COPY training_columns.joblib . | |
| # Expose the port the Flask app will run on | |
| EXPOSE 7860 | |
| # Command to run the Flask application using Gunicorn | |
| CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:superkart_sales_predictor_api"] | |