File size: 296 Bytes
353bb1a
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
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"]