mirror of
https://github.com/remsky/Kokoro-FastAPI.git
synced 2025-04-13 09:39:17 +00:00
ci: update Docker configurations to use pre-built images and UI services
This commit is contained in:
parent
a65fd61cdb
commit
280291f2aa
3 changed files with 20 additions and 9 deletions
3
.github/workflows/docker-publish.yml
vendored
3
.github/workflows/docker-publish.yml
vendored
|
@ -38,6 +38,7 @@ jobs:
|
|||
type=semver,pattern={{version}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
type=semver,pattern={{major}}
|
||||
type=raw,value=latest
|
||||
|
||||
# Extract metadata for CPU image
|
||||
- name: Extract metadata (tags, labels) for CPU Docker
|
||||
|
@ -51,6 +52,7 @@ jobs:
|
|||
type=semver,pattern={{version}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
type=semver,pattern={{major}}
|
||||
type=raw,value=latest
|
||||
|
||||
# Build and push GPU version
|
||||
- name: Build and push GPU Docker image
|
||||
|
@ -86,6 +88,7 @@ jobs:
|
|||
type=semver,pattern={{version}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
type=semver,pattern={{major}}
|
||||
type=raw,value=latest
|
||||
|
||||
# Build and push UI version
|
||||
- name: Build and push UI Docker image
|
||||
|
|
|
@ -26,9 +26,11 @@ services:
|
|||
start_period: 1s
|
||||
|
||||
kokoro-tts:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.cpu
|
||||
image: ghcr.io/remsky/kokoro-fastapi:v0.0.2-cpu
|
||||
# Uncomment below to build from source instead of using the released image
|
||||
# build:
|
||||
# context: .
|
||||
# dockerfile: Dockerfile.cpu
|
||||
volumes:
|
||||
- ./api/src:/app/api/src
|
||||
- ./Kokoro-82M:/app/Kokoro-82M
|
||||
|
@ -49,8 +51,10 @@ services:
|
|||
|
||||
# Gradio UI service [Comment out everything below if you don't need it]
|
||||
gradio-ui:
|
||||
build:
|
||||
context: ./ui
|
||||
image: ghcr.io/remsky/kokoro-fastapi:v0.0.2-ui
|
||||
# Uncomment below to build from source instead of using the released image
|
||||
# build:
|
||||
# context: ./ui
|
||||
ports:
|
||||
- "7860:7860"
|
||||
volumes:
|
||||
|
|
|
@ -26,8 +26,10 @@ services:
|
|||
start_period: 1s
|
||||
|
||||
kokoro-tts:
|
||||
build:
|
||||
context: .
|
||||
image: ghcr.io/remsky/kokoro-fastapi:v0.0.2
|
||||
# Uncomment below to build from source instead of using the released image
|
||||
# build:
|
||||
# context: .
|
||||
volumes:
|
||||
- ./api/src:/app/api/src
|
||||
- ./Kokoro-82M:/app/Kokoro-82M
|
||||
|
@ -48,8 +50,10 @@ services:
|
|||
|
||||
# Gradio UI service [Comment out everything below if you don't need it]
|
||||
gradio-ui:
|
||||
build:
|
||||
context: ./ui
|
||||
image: ghcr.io/remsky/kokoro-fastapi:v0.0.2-ui
|
||||
# Uncomment below to build from source instead of using the released image
|
||||
# build:
|
||||
# context: ./ui
|
||||
ports:
|
||||
- "7860:7860"
|
||||
volumes:
|
||||
|
|
Loading…
Add table
Reference in a new issue