Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +11 -7
Dockerfile
CHANGED
@@ -18,13 +18,17 @@ WORKDIR $HOME/app
|
|
18 |
COPY --chown=user . $HOME/app
|
19 |
|
20 |
# Download VOICEVOX Core from latest Release
|
21 |
-
RUN curl -
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
|
|
|
|
|
|
|
|
28 |
|
29 |
# Clone VOICEVOX Engine from Git Repository
|
30 |
RUN git clone https://github.com/VOICEVOX/voicevox_engine.git voicevox_engine
|
|
|
18 |
COPY --chown=user . $HOME/app
|
19 |
|
20 |
# Download VOICEVOX Core from latest Release
|
21 |
+
RUN curl -s https://api.github.com/repos/VOICEVOX/voicevox_core/releases/latest \
|
22 |
+
| jq -r '.assets[] | select(.name|test("^voicevox_core-linux-x64.*\\.zip$")) | .browser_download_url' \
|
23 |
+
| xargs curl -L -o voicevox_core.zip
|
24 |
+
|
25 |
+
# Extract VOICEVOX Core and flatten if needed
|
26 |
+
RUN unzip voicevox_core.zip -d voicevox_core && \
|
27 |
+
cd voicevox_core && \
|
28 |
+
entries=($(find . -mindepth 1 -maxdepth 1)) && \
|
29 |
+
[ ${#entries[@]} -eq 1 ] && \
|
30 |
+
mv "${entries[0]}"/* . && \
|
31 |
+
rmdir "${entries[0]}"
|
32 |
|
33 |
# Clone VOICEVOX Engine from Git Repository
|
34 |
RUN git clone https://github.com/VOICEVOX/voicevox_engine.git voicevox_engine
|