Skip to content

Commit

Permalink
remove LIBRARY_PATH env on build
Browse files Browse the repository at this point in the history
  • Loading branch information
aoirint committed Dec 30, 2021
1 parent 7ecc3d8 commit 6a79869
Showing 1 changed file with 19 additions and 20 deletions.
39 changes: 19 additions & 20 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -349,26 +349,25 @@ RUN <<EOF

cd /opt/voicevox_engine_build

LIBRARY_PATH="/opt/voicevox_core:\${LIBRARY_PATH:-}" \
gosu user /opt/python/bin/python3 -m nuitka \
--output-dir=/opt/voicevox_engine_build \
--standalone \
--plugin-enable=numpy \
--follow-import-to=numpy \
--follow-import-to=aiofiles \
--include-package=uvicorn \
--include-package=anyio \
--include-package-data=pyopenjtalk \
--include-package-data=scipy \
--include-data-file=/opt/voicevox_engine/VERSION.txt=./ \
--include-data-file=/opt/voicevox_engine/licenses.json=./ \
--include-data-file=/opt/voicevox_engine/presets.yaml=./ \
--include-data-file=/opt/voicevox_core/*.bin=./ \
--include-data-file=/opt/voicevox_core/metas.json=./ \
--include-data-dir=/opt/voicevox_engine/speaker_info=./speaker_info \
--follow-imports \
--no-prefer-source-code \
/opt/voicevox_engine/run.py
gosu user /opt/python/bin/python3 -m nuitka \
--output-dir=/opt/voicevox_engine_build \
--standalone \
--plugin-enable=numpy \
--follow-import-to=numpy \
--follow-import-to=aiofiles \
--include-package=uvicorn \
--include-package=anyio \
--include-package-data=pyopenjtalk \
--include-package-data=scipy \
--include-data-file=/opt/voicevox_engine/VERSION.txt=./ \
--include-data-file=/opt/voicevox_engine/licenses.json=./ \
--include-data-file=/opt/voicevox_engine/presets.yaml=./ \
--include-data-file=/opt/voicevox_core/*.bin=./ \
--include-data-file=/opt/voicevox_core/metas.json=./ \
--include-data-dir=/opt/voicevox_engine/speaker_info=./speaker_info \
--follow-imports \
--no-prefer-source-code \
/opt/voicevox_engine/run.py

# Copy libonnxruntime_providers_cuda.so and dependencies (CUDA/cuDNN)
if [ -f "/opt/onnxruntime/lib/libonnxruntime_providers_cuda.so" ]; then
Expand Down

0 comments on commit 6a79869

Please sign in to comment.