From a8621d2bb090f8508f1b2e59f3c5dbd47b14f448 Mon Sep 17 00:00:00 2001 From: Aram Akhavan Date: Fri, 29 Sep 2023 11:51:47 -0700 Subject: [PATCH] Update permissions setting in Dockerfile.web This fixes issues with assets loading when you run as non root users --- docker/Dockerfile.web | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile.web b/docker/Dockerfile.web index 07a8b9c..290e185 100644 --- a/docker/Dockerfile.web +++ b/docker/Dockerfile.web @@ -31,5 +31,6 @@ COPY --link --from=backendbuild --chmod=755 /go/src/github.com/analogj/scrutiny/ COPY --link --from=frontendbuild --chmod=644 /go/src/github.com/analogj/scrutiny/dist /opt/scrutiny/web RUN mkdir -p /opt/scrutiny/web && \ mkdir -p /opt/scrutiny/config && \ - chmod -R ugo+rwx /opt/scrutiny/config + chmod -R a+rX /opt/scrutiny && \ + chmod -R a+w /opt/scrutiny/config CMD ["/opt/scrutiny/bin/scrutiny", "start"]