Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +10 -7
Dockerfile
CHANGED
@@ -17,22 +17,25 @@ WORKDIR $HOME/app
|
|
17 |
# Copy the application code and the requirements.txt file
|
18 |
COPY --chown=user . $HOME/app
|
19 |
|
20 |
-
# Download VOICEVOX Core
|
21 |
RUN curl -sSfL https://github.com/VOICEVOX/voicevox_core/releases/download/0.15.0/download.sh -o download.sh
|
22 |
-
RUN sed -i 's|https://jaist.dl.sourceforge.net/project/open-jtalk/Dictionary/open_jtalk_dic-1.11/open_jtalk_dic_utf_8-1.11.tar.gz|https://downloads.sourceforge.net/project/open-jtalk/Dictionary/open_jtalk_dic-1.11/open_jtalk_dic_utf_8-1.11.tar.gz|' download.sh
|
23 |
|
24 |
-
#
|
|
|
|
|
|
|
25 |
RUN chmod +x download.sh
|
26 |
|
27 |
-
#
|
28 |
RUN ./download.sh
|
29 |
|
30 |
-
# Clone VOICEVOX Engine
|
31 |
RUN git clone --branch release-0.15 https://github.com/VOICEVOX/voicevox_engine.git
|
32 |
|
33 |
-
# Install
|
34 |
RUN pip install --no-cache-dir --upgrade -r voicevox_engine/requirements.txt
|
35 |
|
36 |
-
# Start the FastAPI app on port 7860,
|
37 |
CMD ["python", "voicevox_engine/run.py", "--voicelib_dir", "voicevox_core", "--host", "0.0.0.0", "--port", "7860", "--cors_policy_mode", "all", "--load_all_models"]
|
|
|
38 |
#RUN voicevox_engine --download-models
|
|
|
17 |
# Copy the application code and the requirements.txt file
|
18 |
COPY --chown=user . $HOME/app
|
19 |
|
20 |
+
# Download VOICEVOX Core v0.15.0's download.sh script
|
21 |
RUN curl -sSfL https://github.com/VOICEVOX/voicevox_core/releases/download/0.15.0/download.sh -o download.sh
|
|
|
22 |
|
23 |
+
# If 404 error occurs on the open_jtalk dictionary URL, uncomment below line to use jaist mirror
|
24 |
+
# RUN sed -i 's|https://downloads.sourceforge.net/project/open-jtalk/Dictionary/open_jtalk_dic-1.11/open_jtalk_dic_utf_8-1.11.tar.gz|https://jaist.dl.sourceforge.net/project/open-jtalk/Dictionary/open_jtalk_dic-1.11/open_jtalk_dic_utf_8-1.11.tar.gz|' download.sh
|
25 |
+
|
26 |
+
# Give execution permissions to the download script
|
27 |
RUN chmod +x download.sh
|
28 |
|
29 |
+
# Run the download script to install VOICEVOX Core and dictionaries
|
30 |
RUN ./download.sh
|
31 |
|
32 |
+
# Clone VOICEVOX Engine repository (release-0.15 branch)
|
33 |
RUN git clone --branch release-0.15 https://github.com/VOICEVOX/voicevox_engine.git
|
34 |
|
35 |
+
# Install Python dependencies for VOICEVOX Engine
|
36 |
RUN pip install --no-cache-dir --upgrade -r voicevox_engine/requirements.txt
|
37 |
|
38 |
+
# Start the FastAPI app on port 7860, with all models loaded and CORS policy set to allow all origins
|
39 |
CMD ["python", "voicevox_engine/run.py", "--voicelib_dir", "voicevox_core", "--host", "0.0.0.0", "--port", "7860", "--cors_policy_mode", "all", "--load_all_models"]
|
40 |
+
|
41 |
#RUN voicevox_engine --download-models
|