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={{version}}
type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}} type=semver,pattern={{major}}
type=raw,value=latest
# Extract metadata for CPU image # Extract metadata for CPU image
- name: Extract metadata (tags, labels) for CPU Docker - name: Extract metadata (tags, labels) for CPU Docker
@ -51,6 +52,7 @@ jobs:
type=semver,pattern={{version}} type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}} type=semver,pattern={{major}}
type=raw,value=latest
# Build and push GPU version # Build and push GPU version
- name: Build and push GPU Docker image - name: Build and push GPU Docker image
@ -86,6 +88,7 @@ jobs:
type=semver,pattern={{version}} type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}} type=semver,pattern={{major}}
type=raw,value=latest
# Build and push UI version # Build and push UI version
- name: Build and push UI Docker image - name: Build and push UI Docker image

View file

@ -26,9 +26,11 @@ services:
start_period: 1s start_period: 1s
kokoro-tts: kokoro-tts:
build: image: ghcr.io/remsky/kokoro-fastapi:v0.0.2-cpu
context: . # Uncomment below to build from source instead of using the released image
dockerfile: Dockerfile.cpu # build:
# context: .
# dockerfile: Dockerfile.cpu
volumes: volumes:
- ./api/src:/app/api/src - ./api/src:/app/api/src
- ./Kokoro-82M:/app/Kokoro-82M - ./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 service [Comment out everything below if you don't need it]
gradio-ui: gradio-ui:
build: image: ghcr.io/remsky/kokoro-fastapi:v0.0.2-ui
context: ./ui # Uncomment below to build from source instead of using the released image
# build:
# context: ./ui
ports: ports:
- "7860:7860" - "7860:7860"
volumes: volumes:

View file

@ -26,8 +26,10 @@ services:
start_period: 1s start_period: 1s
kokoro-tts: kokoro-tts:
build: image: ghcr.io/remsky/kokoro-fastapi:v0.0.2
context: . # Uncomment below to build from source instead of using the released image
# build:
# context: .
volumes: volumes:
- ./api/src:/app/api/src - ./api/src:/app/api/src
- ./Kokoro-82M:/app/Kokoro-82M - ./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 service [Comment out everything below if you don't need it]
gradio-ui: gradio-ui:
build: image: ghcr.io/remsky/kokoro-fastapi:v0.0.2-ui
context: ./ui # Uncomment below to build from source instead of using the released image
# build:
# context: ./ui
ports: ports:
- "7860:7860" - "7860:7860"
volumes: volumes: