From 9e27f642fb1a8291488c5480038b58ed806cf0d0 Mon Sep 17 00:00:00 2001 From: Andrey Danilov Date: Mon, 20 May 2024 00:01:08 +0300 Subject: [PATCH] Update `README.md` --- README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/README.md b/README.md index c6b5066..a485420 100644 --- a/README.md +++ b/README.md @@ -140,3 +140,32 @@ curl -X 'POST' \ -F 'modelpath={model.pth}' \ -F 'input={input audio path}' ``` + +### Docker Usage + +Build and run via script: + +```bash +./docker-run.sh +``` + +**Or** use manually: + +1. Build: + + ```bash + docker build -t "rvc" . + ``` + +2. Run: + + ```bash + docker run -it \ + -p 8000:8000 \ + -v "${PWD}/assets/weights:/weights:ro" \ + -v "${PWD}/assets/indices:/indices:ro" \ + -v "${PWD}/assets/audios:/audios:ro" \ + "rvc" + ``` + +Notice assumption that weights, indices and input audios are stored in `current-directory/assets`