From 593bed4eb098af723684a118117faf0c5611f764 Mon Sep 17 00:00:00 2001 From: axel7083 <42176370+axel7083@users.noreply.github.com> Date: Thu, 8 Aug 2024 15:38:27 +0200 Subject: [PATCH 1/2] fix(whispercpp): set app ownership to user 1001 Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com> --- model_servers/whispercpp/base/Containerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model_servers/whispercpp/base/Containerfile b/model_servers/whispercpp/base/Containerfile index 1dc3bdd2..eadb0a5f 100644 --- a/model_servers/whispercpp/base/Containerfile +++ b/model_servers/whispercpp/base/Containerfile @@ -19,7 +19,7 @@ COPY --from=builder /app /app COPY --from=mwader/static-ffmpeg:6.1.1 /ffmpeg /bin/ COPY --from=mwader/static-ffmpeg:6.1.1 /ffprobe /bin/ -COPY --chown=0:0 --chmod=755 src /app +COPY --chown=1001:0 --chmod=755 src /app USER 1001 From beb3b12de7fe4d7825457e6875d6d70f0a90d444 Mon Sep 17 00:00:00 2001 From: axel7083 <42176370+axel7083@users.noreply.github.com> Date: Thu, 8 Aug 2024 16:02:45 +0200 Subject: [PATCH 2/2] fix(whisper_cpp): missing ownership Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com> --- model_servers/whispercpp/base/Containerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/model_servers/whispercpp/base/Containerfile b/model_servers/whispercpp/base/Containerfile index eadb0a5f..708131fe 100644 --- a/model_servers/whispercpp/base/Containerfile +++ b/model_servers/whispercpp/base/Containerfile @@ -19,7 +19,8 @@ COPY --from=builder /app /app COPY --from=mwader/static-ffmpeg:6.1.1 /ffmpeg /bin/ COPY --from=mwader/static-ffmpeg:6.1.1 /ffprobe /bin/ -COPY --chown=1001:0 --chmod=755 src /app +COPY --chown=0:0 --chmod=755 src /app +RUN chown 1001:1001 /app USER 1001