File size: 577 Bytes
0f4a8fd
 
 
 
 
 
 
 
 
 
 
 
 
 
7b8d7c2
0f4a8fd
 
 
 
 
 
1e44e1a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Use an official Python runtime as a parent image
FROM python:3.10.14-slim-bullseye

# Set the working directory in the container
WORKDIR /app


# Copy only requirements.txt to leverage Docker cache
COPY . .

# Install any needed packages specified in requirements.txt
RUN apt-get update -y
RUN apt-get install libgl1-mesa-glx libglib2.0-0 -y
RUN pip3 install --no-cache-dir -r requirements.txt
# RUN apt install gunicorn


# Make port 5000 available to the world outside this container
EXPOSE 5000

# Run the application
CMD ["gunicorn", "--bind","0.0.0.0:7860", "main:app"]