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