Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -4
Dockerfile
CHANGED
@@ -26,16 +26,17 @@ COPY --chown=user . $HOME/app
|
|
26 |
# Download VOICEVOX Core from latest Release
|
27 |
RUN curl -sSfL https://github.com/VOICEVOX/voicevox_core/releases/latest/download/download-linux-x64 --output download
|
28 |
|
29 |
-
# Give execution permissions
|
30 |
-
RUN chmod +x ./download
|
31 |
-
|
32 |
RUN apt-get update && apt-get install -y jq tree locales
|
33 |
RUN locale-gen ja_JP.UTF-8
|
34 |
-
|
|
|
|
|
|
|
35 |
ENV LANG=ja_JP.UTF-8
|
36 |
ENV LANGUAGE=ja_JP:ja
|
37 |
ENV LC_ALL=ja_JP.UTF-8
|
38 |
|
|
|
39 |
|
40 |
# Install VOICEVOX Core
|
41 |
RUN echo y | ./download --output voicevox_core
|
|
|
26 |
# Download VOICEVOX Core from latest Release
|
27 |
RUN curl -sSfL https://github.com/VOICEVOX/voicevox_core/releases/latest/download/download-linux-x64 --output download
|
28 |
|
|
|
|
|
|
|
29 |
RUN apt-get update && apt-get install -y jq tree locales
|
30 |
RUN locale-gen ja_JP.UTF-8
|
31 |
+
|
32 |
+
# ここでuserユーザーに切り替え
|
33 |
+
RUN useradd -m -u 1000 user
|
34 |
+
|
35 |
ENV LANG=ja_JP.UTF-8
|
36 |
ENV LANGUAGE=ja_JP:ja
|
37 |
ENV LC_ALL=ja_JP.UTF-8
|
38 |
|
39 |
+
USER user
|
40 |
|
41 |
# Install VOICEVOX Core
|
42 |
RUN echo y | ./download --output voicevox_core
|