forked from SociallyIneptWeeb/AICoverGen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (23 loc) · 1020 Bytes
/
Dockerfile
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
29
30
31
32
FROM nvidia/cuda:12.6.0-cudnn-runtime-rockylinux9
# EPEL
RUN dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm -y
RUN dnf install https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm -y
RUN crb enable
# RPM Fusion
RUN dnf install https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-$(rpm -E %rhel).noarch.rpm -y
RUN dnf install https://mirrors.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-$(rpm -E %rhel).noarch.rpm -y
# Install Packages
RUN dnf install wget make automake gcc gcc-c++ kernel-devel ffmpeg sox python3.9 python3-pip python3-devel cuda-toolkit-12-3 -y
# Update PIP
RUN pip install -I pip==24
# Move Files
RUN mkdir /app
WORKDIR /app
COPY . .
# Install Dependencies
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install --no-cache-dir tensorboardX
RUN python3 /app/src/download_models.py
# Expose and Run
EXPOSE 8000
CMD ["python3", "src/webui.py", "--listen-host", "0.0.0.0", "--listen-port", "8000", "--listen"]