mirror of
https://github.com/remsky/Kokoro-FastAPI.git
synced 2025-08-05 16:48:53 +00:00
fix: use Docker Slim CLI directly with proper include paths
This commit is contained in:
parent
2c1c896361
commit
fbe392ca2e
1 changed files with 27 additions and 12 deletions
39
.github/workflows/docker-publish.yml
vendored
39
.github/workflows/docker-publish.yml
vendored
|
@ -52,13 +52,24 @@ jobs:
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
|
|
||||||
# Slim GPU version
|
# Slim GPU version
|
||||||
|
- name: Install Docker Slim
|
||||||
|
run: |
|
||||||
|
curl -L -o slim.tar.gz https://downloads.dockerslim.com/releases/1.40.5/dist_linux.tar.gz
|
||||||
|
tar xvf slim.tar.gz
|
||||||
|
sudo mv dist_linux/slim /usr/local/bin/
|
||||||
|
rm -rf dist_linux slim.tar.gz
|
||||||
|
|
||||||
- name: Slim GPU Docker image
|
- name: Slim GPU Docker image
|
||||||
uses: kitabisa/docker-slim-action@v1
|
run: |
|
||||||
env:
|
slim build \
|
||||||
DSLIM_HTTP_PROBE: false
|
--target ${{ env.GPU_IMAGE_NAME }}:v0.1.0 \
|
||||||
with:
|
--tag ${{ env.GPU_IMAGE_NAME }}:v0.1.0-slim \
|
||||||
target: ${{ env.GPU_IMAGE_NAME }}:v0.1.0
|
--include-path=/app/api/model_files \
|
||||||
tag: v0.1.0-slim
|
--include-path=/app/api/src/voices \
|
||||||
|
--include-path=/usr/local/lib/python3.10 \
|
||||||
|
--include-shell \
|
||||||
|
--include-exe=python3,python3.10 \
|
||||||
|
--http-probe=false
|
||||||
|
|
||||||
# Push GPU versions
|
# Push GPU versions
|
||||||
- name: Push GPU Docker images
|
- name: Push GPU Docker images
|
||||||
|
@ -85,12 +96,16 @@ jobs:
|
||||||
|
|
||||||
# Slim CPU version
|
# Slim CPU version
|
||||||
- name: Slim CPU Docker image
|
- name: Slim CPU Docker image
|
||||||
uses: kitabisa/docker-slim-action@v1
|
run: |
|
||||||
env:
|
slim build \
|
||||||
DSLIM_HTTP_PROBE: false
|
--target ${{ env.CPU_IMAGE_NAME }}:v0.1.0 \
|
||||||
with:
|
--tag ${{ env.CPU_IMAGE_NAME }}:v0.1.0-slim \
|
||||||
target: ${{ env.CPU_IMAGE_NAME }}:v0.1.0
|
--include-path=/app/api/model_files \
|
||||||
tag: v0.1.0-slim
|
--include-path=/app/api/src/voices \
|
||||||
|
--include-path=/usr/local/lib/python3.10 \
|
||||||
|
--include-shell \
|
||||||
|
--include-exe=python3,python3.10 \
|
||||||
|
--http-probe=false
|
||||||
|
|
||||||
# Push CPU versions
|
# Push CPU versions
|
||||||
- name: Push CPU Docker images
|
- name: Push CPU Docker images
|
||||||
|
|
Loading…
Add table
Reference in a new issue