Spaces:
Sleeping
Sleeping
File size: 665 Bytes
32e67e2 0a63305 6312228 32e67e2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# 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"]
|