File size: 612 Bytes
1b5c3e8
 
 
6a43626
1b5c3e8
 
6a43626
1b5c3e8
99df7c8
23b403b
1b5c3e8
 
 
 
 
 
 
 
 
 
23b403b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM python:3.9-slim

# Set the working directory in the container
WORKDIR /app

# Copy the current directory contents into the container at /app
COPY . /app

RUN apt-get update && apt-get install ffmpeg libsm6 libxext6  -y && apt-get install -y python3-opencv
RUN pip install gunicorn
# Install any needed dependencies specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

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

# Define environment variable
ENV NAME World

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