MeowSky49887 commited on
Commit
7e69488
verified
1 Parent(s): c06f618

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -12
Dockerfile CHANGED
@@ -22,18 +22,13 @@ WORKDIR $HOME/app
22
  COPY --chown=user . $HOME/app
23
 
24
  # Download VOICEVOX Core from latest Release
25
- RUN curl -s https://api.github.com/repos/VOICEVOX/voicevox_core/releases/latest \
26
- | jq -r '.assets[] | select(.name|test("^voicevox_core-linux-x64.*\\.zip$")) | .browser_download_url' \
27
- | xargs curl -L -o voicevox_core.zip
28
-
29
- # Extract VOICEVOX Core and flatten if needed
30
- RUN unzip voicevox_core.zip -d ./voicevox_core && \
31
- cd ./voicevox_core && \
32
- entry=$(find . -mindepth 1 -maxdepth 1) && \
33
- count=$(echo "$entry" | wc -l) && \
34
- [ "$count" -eq 1 ] && \
35
- mv "$entry"/* . && \
36
- rmdir "$entry"
37
 
38
  # Clone VOICEVOX Engine from Git Repository
39
  RUN git clone https://github.com/VOICEVOX/voicevox_engine.git voicevox_engine
 
22
  COPY --chown=user . $HOME/app
23
 
24
  # Download VOICEVOX Core from latest Release
25
+ RUN curl -sSfL https://github.com/VOICEVOX/voicevox_core/releases/latest/download/download-linux-x64 --output download
26
+
27
+ # Give execution permissions
28
+ RUN chmod +x ./download
29
+
30
+ # Install VOICEVOX Core
31
+ RUN ./download --output voicevox_core
 
 
 
 
 
32
 
33
  # Clone VOICEVOX Engine from Git Repository
34
  RUN git clone https://github.com/VOICEVOX/voicevox_engine.git voicevox_engine