diff --git a/VOICEVOX_engine/Dockerfile b/VOICEVOX_engine/Dockerfile index 8a819bd..66aca8e 100644 --- a/VOICEVOX_engine/Dockerfile +++ b/VOICEVOX_engine/Dockerfile @@ -51,42 +51,15 @@ RUN apt-get install -y \ gosu \ libsndfile1 -#RUN cd / && \ -# wget https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-1.11.0%2Bcpu.zip && \ -# unzip libtorch-cxx11-abi-shared-with-deps-1.11.0+cpu.zip +RUN useradd -m -d /home/container container -#ENV LD_LIBRARY_PATH=/libtorch/lib - -#RUN cd / && \ -# wget https://github.com/microsoft/onnxruntime/releases/download/v1.10.0/onnxruntime-linux-x64-1.10.0.tgz && \ -# tar xzf onnxruntime-linux-x64-1.10.0.tgz && \ -# mv onnxruntime-linux-x64-1.10.0 onnxruntime - -#ENV DYLD_LIBRARY_PATH=/onnxruntime/lib - -#RUN cd / && \ -# curl -s https://api.github.com/repos/VOICEVOX/voicevox_core/releases/latest \ -# | grep "browser_download_url.*core.zip" \ -# | cut -d : -f 2,3 \ -# | tr -d \" \ -# | wget -qi - -#RUN cd / && \ -# wget https://github.com/VOICEVOX/voicevox_core/releases/download/0.12.0-preview.3/voicevox_core-linux-x64-cpu-0.12.0-preview.3.zip -#RUN cd / && \ -# unzip voicevox_core-linux-x64-cpu-0.12.0-preview.3.zip \ -# && mv voicevox_core-linux-x64-cpu-0.12.0-preview.3 voicevox_core -# && rm -fr voicevox_core/libcore.so \ -# && mv voicevox_core/libcore_cpu_x64.so voicevox_core/libcore.so - -#ENV VOICEVOX_CORE="/voicevox_core/libcore.so" - -USER container -ENV USER=container HOME=/home/container -WORKDIR /home/container +USER container +ENV USER=container HOME=/home/container +WORKDIR /home/container STOPSIGNAL SIGINT -COPY entrypoint.sh /entrypoint.sh +COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] CMD ["/entrypoint.sh"]