MeowSky49887 commited on
Commit
c82c474
verified
1 Parent(s): c6f3035

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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 -sSfL https://github.com/VOICEVOX/voicevox_core/releases/latest/download/download-linux-x64 --output download
22
-
23
- # Give execution permissions
24
- RUN chmod +x ./download
25
-
26
- # Install VOICEVOX Core
27
- RUN ./download --output voicevox_core
 
 
 
 
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