From ca2fb5582e518d7f38c3d4ee80915f55ff051e8d Mon Sep 17 00:00:00 2001 From: Funktionslust <37137190+funktionslust@users.noreply.github.com> Date: Tue, 14 Oct 2025 16:24:32 +0200 Subject: [PATCH] Update Dockerfile Ensure everything in /app dir is owned and traversable by the runtime user --- docker/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 07a5d63eee..b12c274029 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -162,10 +162,11 @@ FROM backend-build AS production-build WORKDIR /app COPY --chown=anythingllm:anythingllm --from=frontend-build /app/frontend/dist /app/server/public USER root -RUN chown -R anythingllm:anythingllm /app/server && \ - chown -R anythingllm:anythingllm /app/collector +# Ensure everything in /app dir is owned and traversable by the runtime user +RUN chown -R anythingllm:anythingllm /app && chmod -R u+rwX /app USER anythingllm + # Setup the environment ENV NODE_ENV=production ENV ANYTHING_LLM_RUNTIME=docker