soiz1 commited on
Commit
a1969bf
·
verified ·
1 Parent(s): 81ac01a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -1
Dockerfile CHANGED
@@ -20,6 +20,10 @@ RUN pip install --upgrade pip==23.1 \
20
  && pip install librosa==0.9.2 numba==0.55.2 llvmlite==0.38.0 \
21
  && pip install -r requirements.txt
22
 
 
 
 
 
23
  # Adjust permissions for /app and its subdirectories
24
  RUN chmod -R 777 /app
25
 
@@ -31,7 +35,9 @@ ENV FONTCONFIG_PATH=/tmp/fontconfig
31
  # Environment variables for numba
32
  ENV NUMBA_CACHE_DIR=/tmp/numba_cache
33
  ENV NUMBA_DISABLE_JIT=1
34
- RUN mkdir -p /home/deb12/Desktop/ai/audio/myvoice/outputwav && chmod 777 /home/deb12/Desktop/ai/audio/myvoice/outputwav
 
 
35
 
36
  # Run the application
37
  CMD ["python", "infer-web.py"]
 
20
  && pip install librosa==0.9.2 numba==0.55.2 llvmlite==0.38.0 \
21
  && pip install -r requirements.txt
22
 
23
+ # Ensure the hubert_base.pt model exists
24
+ RUN mkdir -p assets/hubert \
25
+ && wget -O assets/hubert/hubert_base.pt "https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/assets/hubert/hubert_base.pt"
26
+
27
  # Adjust permissions for /app and its subdirectories
28
  RUN chmod -R 777 /app
29
 
 
35
  # Environment variables for numba
36
  ENV NUMBA_CACHE_DIR=/tmp/numba_cache
37
  ENV NUMBA_DISABLE_JIT=1
38
+
39
+ # Set up output directory inside the container
40
+ RUN mkdir -p /app/outputwav && chmod 777 /app/outputwav
41
 
42
  # Run the application
43
  CMD ["python", "infer-web.py"]