nex-speech: Dateirechte explizit (Clone auf ops ist 0600, Piper läuft als nobody)
ci / test (push) Successful in 29s
ci / test (push) Successful in 29s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
afc5fa0360
commit
ddd7ad033d
@@ -4,9 +4,9 @@ FROM python:3.12-slim-bookworm@sha256:34386ef0cb081344d7ec1c103ba398e6e9f64e9ab3
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends ffmpeg \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
COPY 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
|
||||
COPY app.py /app/app.py
|
||||
COPY --chmod=0644 app.py /app/app.py
|
||||
ENV PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1
|
||||
USER nobody
|
||||
WORKDIR /app
|
||||
|
||||
@@ -33,7 +33,6 @@ RUN apt-get update \
|
||||
COPY --from=build /src/build/bin/whisper-server /usr/local/bin/whisper-server
|
||||
# ffmpeg-Hülle: whisper-server ruft "ffmpeg … 2>&1" auf und schriebe sonst Banner und
|
||||
# Container-Metadaten des Uploads ins Log. Die Hülle liegt vor /usr/bin im PATH.
|
||||
COPY ffmpeg-quiet.sh /usr/local/bin/ffmpeg
|
||||
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||
RUN chmod 0755 /usr/local/bin/ffmpeg /usr/local/bin/entrypoint.sh
|
||||
COPY --chmod=0755 ffmpeg-quiet.sh /usr/local/bin/ffmpeg
|
||||
COPY --chmod=0755 entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
||||
|
||||
Reference in New Issue
Block a user