Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docker files #111

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
FROM nvidia/cuda:11.7.1-cudnn8-runtime-ubuntu22.04

ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=America/Los_Angeles

RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential python3.9 python3-pip python3-dev ffmpeg sox tzdata cuda-toolkit-12-3 && \
ln -fs /usr/share/zoneinfo/$TZ /etc/localtime && \
dpkg-reconfigure --frontend noninteractive tzdata && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

RUN python3 -m pip install --upgrade pip

WORKDIR /app

COPY . /app
RUN pip3 install --no-cache-dir -r requirements.txt
RUN pip3 install --no-cache-dir tensorboardX

RUN python3 /app/src/download_models.py

EXPOSE 8000

CMD ["python3", "src/webui.py", "--listen-host", "0.0.0.0", "--listen-port", "8000", "--listen"]
22 changes: 22 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: "3.8"
services:
aicovergen:
build:
context: .
dockerfile: Dockerfile
container_name: aicovergen
volumes:
- ./mdxnet_models:/app/mdxnet_models
- ./rvc_models:/app/rvc_models
- ./song_output:/app/song_output
ports:
- "8000:8000"
environment:
- TZ=America/Los_Angeles
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]