nex-speech: /app vor COPY --chmod anlegen (sonst ohne x-Bit, Import scheitert)
ci / test (push) Successful in 26s
ci / test (push) Successful in 26s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
456fce2386
commit
828ed3975b
@@ -4,11 +4,12 @@ FROM python:3.12-slim-bookworm@sha256:34386ef0cb081344d7ec1c103ba398e6e9f64e9ab3
|
|||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends ffmpeg \
|
&& apt-get install -y --no-install-recommends ffmpeg \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& 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
|
COPY --chmod=0644 requirements.txt /app/requirements.txt
|
||||||
RUN pip install --no-cache-dir --disable-pip-version-check -r /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
|
COPY --chmod=0644 app.py /app/app.py
|
||||||
ENV PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1
|
ENV PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1
|
||||||
USER nobody
|
USER nobody
|
||||||
WORKDIR /app
|
|
||||||
# Kein Access-Log (Datenschutz), nur Warnungen und Fehler
|
# 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"]
|
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"]
|
||||||
|
|||||||
Reference in New Issue
Block a user