Pushpak21's picture
Update Dockerfile
04b24c0 verified
raw
history blame contribute delete
639 Bytes
FROM python:3.9-slim
# Set working directory
WORKDIR /app
# Copy the current directory contents into the container at /app
COPY . .
# Install dependencies
RUN pip install --no-cache-dir --upgrade -r requirements.txt
# Define the command to start the application using Gunicorn with 4 worker Product_Store_Sales_Total
# - `-w 4`: Uses 4 worker processes for handling requests
# - `-b 0.0.0.0:7860`: Binds the server to port 7860 on all network interfaces
# - `app:app`: Runs the Flask app (assuming `app.py` contains the Flask instance named `app`)
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:Superkart_Sales_Predictor_API"]