File size: 490 Bytes
3fdcc52
 
0b927d0
ecaff12
3fdcc52
 
 
ecaff12
 
 
3fdcc52
 
0b927d0
3fdcc52
 
ecaff12
3fdcc52
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
## Use the official Python image
FROM python:3.9

# Set the working directory in the container
# Copy the requirements file into the container
COPY requirements.txt ./requirements.txt




# Install Python packages from requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt

# Copy the current directory contents into the container
COPY . .

# Run the application using gunicorn with eventlet worker
CMD ["gunicorn", "-k", "eventlet", "-b", "0.0.0.0:7860", "app:app"]