Docker-project / Dockerfile
vamshf's picture
Upload Dockerfile with huggingface_hub
178a1c2 verified
raw
history blame contribute delete
674 Bytes
# 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"]