EngineeringGeneral / Dockerfile
Pushpak21's picture
Create Dockerfile
353bb1a verified
raw
history blame contribute delete
296 Bytes
FROM python:3.9-slim
# Set working directory
WORKDIR /app
# Copy everything into the container
COPY . .
# Install dependencies
RUN pip install --no-cache-dir --upgrade -r requirements.txt
# Run the app using gunicorn with 4 workers
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"]