Skip to content

Commit

Permalink
Fix permissions for /config/config.toml so Athens can run as non-root
Browse files Browse the repository at this point in the history
  • Loading branch information
tzvetkoff committed Mar 7, 2021
1 parent 93cef4f commit 39bcb09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/proxy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down

0 comments on commit 39bcb09

Please sign in to comment.