Spaces:
Sleeping
Sleeping
| # 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"] | |