File size: 674 Bytes
753a3fc
 
 
 
07a01d4
753a3fc
e47b244
753a3fc
f424555
178a1c2
f424555
753a3fc
 
 
 
 
 
 
1230687
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Use a minimal base image with Python 3.9 installed
FROM python:3.9-slim

# Set the working directory inside the container to /app
WORKDIR /app

RUN pip install gunicorn
# Copy the requirements file and install dependencies first to leverage Docker cache
COPY requirements.txt .
COPY superKart_Sales_forecast.py .
RUN pip install --no-cache-dir -r requirements.txt

# Copy the rest of the application files
COPY . .

# Command to run the Flask application using Gunicorn
# Gunicorn is a production-ready WSGI server
# You can adjust the number of workers and threads based on your needs
CMD ["gunicorn", "-w", "4", "--bind", "0.0.0.0:7860", "app:superKart_Sales_forecast"]