From 79c6842a7365870b582606b02a24f3a44e11c220 Mon Sep 17 00:00:00 2001 From: Wen Zhou Date: Fri, 16 Aug 2024 03:29:36 -0400 Subject: [PATCH] update: open root group to the same permission as owner (#1182) - in this case, we will get '-rw-rw-r--' - non-1001 users can run as user for operator pod Signed-off-by: Wen Zhou --- Dockerfiles/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfiles/Dockerfile b/Dockerfiles/Dockerfile index 3b2f2a4c60a..2c6743185ff 100644 --- a/Dockerfiles/Dockerfile +++ b/Dockerfiles/Dockerfile @@ -48,7 +48,7 @@ COPY --from=builder /workspace/manager . COPY --chown=1001:0 --from=builder /opt/manifests /opt/manifests # Recursive change all files RUN chown -R 1001:0 /opt/manifests &&\ - chmod -R a+r /opt/manifests + chmod -R g=u /opt/manifests USER 1001 ENTRYPOINT ["/manager"]