From 39bcb09b6ab4111d9dfb2cce70e63dcb6aad065f Mon Sep 17 00:00:00 2001 From: Latchezar Tzvetkoff Date: Sun, 7 Mar 2021 13:40:04 +0200 Subject: [PATCH] Fix permissions for /config/config.toml so Athens can run as non-root Fixes #1695. --- cmd/proxy/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/proxy/Dockerfile b/cmd/proxy/Dockerfile index 1fdceb3a8..3eb60abf4 100644 --- a/cmd/proxy/Dockerfile +++ b/cmd/proxy/Dockerfile @@ -26,7 +26,7 @@ COPY --from=builder /bin/athens-proxy /bin/athens-proxy COPY --from=builder /go/src/github.com/gomods/athens/config.dev.toml /config/config.toml COPY --from=builder /usr/local/go/bin/go /bin/go -RUN chmod 700 /config/config.toml +RUN chmod 644 /config/config.toml # Add tini, see https://github.com/gomods/athens/issues/1155 for details. RUN apk add --update bzr git git-lfs mercurial openssh-client subversion procps fossil tini && \