Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Commit 4b6de0f

Browse files
author
Jarret Lavallee
committed
(maint) Update container user for builds
Prior to this commit, the docker image would fail to build as the upstream grafana container sets a non root user. This commit changes the user to root for the package installation and then back to the non root user.
1 parent bfda12d commit 4b6de0f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

grafana-puppetserver/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
FROM grafana/grafana
22
MAINTAINER Reid Vandewiele <reid@puppet.com>
33

4+
USER root
5+
46
COPY build/* /grafana-puppet/
57
RUN apt-get update && \
68
apt-get -y install curl && \
@@ -9,6 +11,8 @@ RUN apt-get update && \
911
rm -rf /var/lib/apt/lists/* && \
1012
rm -rf /tmp/*
1113

14+
USER grafana
15+
1216
ENTRYPOINT /grafana-puppet/run.sh
1317

1418
LABEL org.label-schema.vendor="Reid Vandewiele" \

0 commit comments

Comments
 (0)