-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (21 loc) · 737 Bytes
/
Dockerfile
File metadata and controls
28 lines (21 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM nvidia/cuda:12.8.0-cudnn-runtime-ubuntu24.04
# Install system dependencies
RUN apt-get update && \
apt-get install -y \
ffmpeg \
python3 \
python3-pip \
wget \
&& rm -rf /var/lib/apt/lists/*
# By default, listen on port 5000
EXPOSE 5000/tcp
# Set the working directory in the container
WORKDIR /app
# Copy the dependencies file to the working directory
COPY requirements.txt .
# Install any dependencies
RUN pip3 install -r requirements.txt --break-system-packages
# Copy the content of the local src directory to the working directory
COPY . .
# Specify the command to run on container start
CMD ["gunicorn", "--timeout", "0", "--threads", "3", "--workers", "3", "-b", "0.0.0.0:5000", "wsgi:app"]