ci / test (push) Successful in 26s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
16 lines
920 B
Docker
16 lines
920 B
Docker
# NEX-Sprachausgabe: Piper (CPU) hinter einem OpenAI-kompatiblen Wrapper (app.py).
|
|
# Basis per Digest gepinnt; ffmpeg aus Debian (libmp3lame, libopus).
|
|
FROM python:3.12-slim-bookworm@sha256:34386ef0cb081344d7ec1c103ba398e6e9f64e9ab3a1509accc92a4e24a07258
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends ffmpeg \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
# /app vorher anlegen: COPY --chmod würde den Elternordner sonst ohne x-Bit erzeugen
|
|
WORKDIR /app
|
|
COPY --chmod=0644 requirements.txt /app/requirements.txt
|
|
RUN pip install --no-cache-dir --disable-pip-version-check -r /app/requirements.txt
|
|
COPY --chmod=0644 app.py /app/app.py
|
|
ENV PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1
|
|
USER nobody
|
|
# Kein Access-Log (Datenschutz), nur Warnungen und Fehler
|
|
CMD ["sh", "-c", "exec uvicorn app:app --host ${TTS_HOST:-0.0.0.0} --port ${TTS_PORT:-8179} --no-access-log --log-level warning --timeout-graceful-shutdown 5"]
|