Skip to content

Commit

Permalink
Merge pull request #86 from dinal/development
Browse files Browse the repository at this point in the history
docker permissions nobody:nogroup to 65534:65534
  • Loading branch information
dinal authored Dec 15, 2020
2 parents f346208 + 6f48ca3 commit 377917c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile.multi
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ COPY --from=builder /go/src/github.com/prometheus/prometheus/console_libraries/
COPY --from=builder /go/src/github.com/prometheus/prometheus/consoles/ /usr/share/prometheus/consoles/

RUN ln -s /usr/share/prometheus/console_libraries /usr/share/prometheus/consoles/ /etc/prometheus/

# should be "chown -R nobody:nogroup etc/prometheus /prometheu" but latest busybox release broke the name convention
RUN mkdir -p /prometheus && \
chown -R nobody:nogroup etc/prometheus /prometheus
chown -R 65534:65534 etc/prometheus /prometheus

USER nobody
EXPOSE 9090
Expand Down

0 comments on commit 377917c

Please sign in to comment.