tortoise-tts icon indicating copy to clipboard operation
tortoise-tts copied to clipboard

Docker build not working

Open Hecto-r opened this issue 1 year ago • 6 comments

$ docker build . -t tts #0 building with "default" instance using docker driver

#1 [internal] load .dockerignore #1 transferring context: #1 transferring context: 2B done #1 DONE 0.2s

#2 [internal] load build definition from Dockerfile #2 transferring dockerfile: 1.25kB done #2 DONE 0.2s Dockerfile:18

16 | ENV CONDA_AUTO_UPDATE_CONDA=false 17 | ENV PIP_DOWNLOAD_CACHE="$HOME/.pip/cache" 18 | >>> ENV TORTOISE_MODELS_DIR 19 | 20 | RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /tmp/miniconda3.sh \

ERROR: failed to solve: ENV must have two arguments

Hecto-r avatar Oct 04 '23 20:10 Hecto-r

I have the same issue. Fresh install of docker.

ScienceofSpock avatar Oct 06 '23 23:10 ScienceofSpock

So, the models dir is in tortoise-tts/build/lib/tortoise/models. You just need to add the path to the end of the line in dockerfile. Change line 18 from: ENV TORTOISE_MODELS_DIR to ENV TORTOISE_MODELS_DIR="$HOME/tortoise-tts/build/lib/tortoise/models"

Make sure to set the path to point to where your install is. Mine is in the default location for Windows, if you left yours at default, the line above should work just fine.

ScienceofSpock avatar Oct 07 '23 00:10 ScienceofSpock

@ScienceofSpock's answer worked perfectly for me on ubuntu

cweaver-logitech avatar Oct 18 '23 11:10 cweaver-logitech

Can you make pr and fix this ?

manmay-nakhashi avatar Oct 18 '23 11:10 manmay-nakhashi

Isn't there a PR in the comment above mine?

cweaver-logitech avatar Oct 18 '23 11:10 cweaver-logitech

i have the same problem .

peter064226 avatar Nov 23 '23 13:11 peter064226