File size: 290 Bytes
0845016
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM python:3.9-slim

# Set the working directory in the container
WORKDIR /app

COPY . /app


RUN pip install --no-cache-dir -r requirements.txt

# Expose the port Flask will run on
EXPOSE 7860

# Run app.py when the container launches
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]