From 6fce25ffa242286e025b416bc60075a532cca3fb Mon Sep 17 00:00:00 2001 From: ducoterra Date: Fri, 22 May 2026 14:43:32 -0400 Subject: [PATCH] fix container build for tts --- Containerfile | 7 ++++++- pyproject.toml | 5 +++++ uv.lock | 3 +++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Containerfile b/Containerfile index 70e8590..244c546 100644 --- a/Containerfile +++ b/Containerfile @@ -1,10 +1,15 @@ -FROM ghcr.io/astral-sh/uv:python3.13-alpine +FROM python:3.13-slim + +# Install uv +RUN pip install --no-cache-dir uv # Copy the project into the image COPY vibe_bot /app COPY uv.lock /app COPY .python-version /app COPY pyproject.toml /app +COPY kokoro-v1.0.onnx /app/kokoro-v1.0.onnx +COPY voices-v1.0.bin /app/voices-v1.0.bin # Disable development dependencies ENV UV_NO_DEV=1 diff --git a/pyproject.toml b/pyproject.toml index 956768d..b9bedfe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,3 +15,8 @@ dependencies = [ "pytest-env>=1.5.0", "kokoro-tts>=2.3.1", ] + +[tool.uv] +required-environments = [ + "sys_platform == 'linux' and platform_machine == 'x86_64'", +] diff --git a/uv.lock b/uv.lock index d56db26..b1f99b9 100644 --- a/uv.lock +++ b/uv.lock @@ -1,6 +1,9 @@ version = 1 revision = 3 requires-python = ">=3.13" +required-markers = [ + "platform_machine == 'x86_64' and sys_platform == 'linux'", +] [[package]] name = "aiohappyeyeballs"