Adjust docker perms in build image (#1917)

adjust docker perms
This commit is contained in:
Timothy Carambat
2024-07-22 12:39:18 -07:00
committed by GitHub
parent 3198718975
commit a43fa8a292
2 changed files with 81 additions and 0 deletions

View File

@@ -154,6 +154,10 @@ USER anythingllm
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
USER anythingllm
# No longer needed? (deprecated)
# WORKDIR /app/server