mirror of
https://github.com/remsky/Kokoro-FastAPI.git
synced 2025-08-05 16:48:53 +00:00
fix: update docker-slim config for proper image optimization
This commit is contained in:
parent
ae66b7b046
commit
7cb8299880
1 changed files with 9 additions and 4 deletions
13
.github/workflows/docker-publish.yml
vendored
13
.github/workflows/docker-publish.yml
vendored
|
@ -60,9 +60,13 @@ jobs:
|
|||
--tag ${{ env.GPU_IMAGE_NAME }}:v0.1.0-slim \
|
||||
--include-path=/app/models \
|
||||
--include-path=/app/api/src/voices \
|
||||
--include-path=/usr/local/lib/python3.10 \
|
||||
--include-path=/app/.venv \
|
||||
--include-bin=/usr/local/cuda/lib64 \
|
||||
--include-bin=/usr/lib/x86_64-linux-gnu/libcudart.so \
|
||||
--include-bin=/usr/lib/x86_64-linux-gnu/libcuda.so \
|
||||
--include-shell \
|
||||
--include-exe=python3,python3.10 \
|
||||
--include-exe=python3,python3.10,espeak-ng \
|
||||
--exclude-mounts=false \
|
||||
--http-probe=false
|
||||
|
||||
# Push GPU versions
|
||||
|
@ -96,9 +100,10 @@ jobs:
|
|||
--tag ${{ env.CPU_IMAGE_NAME }}:v0.1.0-slim \
|
||||
--include-path=/app/models \
|
||||
--include-path=/app/api/src/voices \
|
||||
--include-path=/usr/local/lib/python3.10 \
|
||||
--include-path=/app/.venv \
|
||||
--include-shell \
|
||||
--include-exe=python3,python3.10 \
|
||||
--include-exe=python3,python3.10,espeak-ng \
|
||||
--exclude-mounts=false \
|
||||
--http-probe=false
|
||||
|
||||
# Push CPU versions
|
||||
|
|
Loading…
Add table
Reference in a new issue