ci: update Docker configurations to use pre-built images and UI services

This commit is contained in:
remsky 2025-01-04 20:59:30 -07:00
parent a65fd61cdb
commit 280291f2aa
3 changed files with 20 additions and 9 deletions

View file

@ -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

View file

@ -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:

View file

@ -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: