From 1eb78babed40b25f9a00143992295d334c8dc37c Mon Sep 17 00:00:00 2001 From: John Collier Date: Wed, 17 Jul 2024 12:40:47 -0400 Subject: [PATCH] Set group permissions on whispercpp app folder --- model_servers/whispercpp/base/Containerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/model_servers/whispercpp/base/Containerfile b/model_servers/whispercpp/base/Containerfile index fa9dff1e..543c9e53 100644 --- a/model_servers/whispercpp/base/Containerfile +++ b/model_servers/whispercpp/base/Containerfile @@ -20,5 +20,9 @@ COPY --from=mwader/static-ffmpeg:6.1.1 /ffmpeg /bin/ COPY --from=mwader/static-ffmpeg:6.1.1 /ffprobe /bin/ COPY src /app/ + +RUN chgrp -R 0 /app && chmod -R g=u /app +USER 1001 + ENV AUDIO_FILE=/app/jfk.wav ENTRYPOINT ["sh", "run.sh"]