Add Docker configuration

This commit is contained in:
Andrey Danilov
2024-05-18 22:45:43 +03:00
parent 75faade7d5
commit 61218ff81f
4 changed files with 62 additions and 0 deletions

16
docker-run.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/usr/bin/env bash
#
# Runs RVC API in Docker.
set -e
tag="rvc"
docker build -t "${tag}" .
docker run -it \
-p 8000:8000 \
-v "${PWD}/assets/weights:/weights:ro" \
-v "${PWD}/assets/indices:/indices:ro" \
-v "${PWD}/assets/audios:/audios:ro" \
"${tag}"