@@ -3,6 +3,7 @@ ARG grafana_image=grafana-enterprise
33
44FROM grafana/${grafana_image}:${grafana_version}
55
6+ ARG anonymous_auth_enabled=true
67ARG development=false
78ARG TARGETARCH
89
@@ -14,7 +15,7 @@ ENV DEV "${development}"
1415# Make it as simple as possible to access the grafana instance for development purposes
1516# Do NOT enable these settings in a public facing / production grafana instance
1617ENV GF_AUTH_ANONYMOUS_ORG_ROLE "Admin"
17- ENV GF_AUTH_ANONYMOUS_ENABLED "true "
18+ ENV GF_AUTH_ANONYMOUS_ENABLED "${anonymous_auth_enabled} "
1819ENV GF_AUTH_BASIC_ENABLED "false"
1920# Set development mode so plugins can be loaded without the need to sign
2021ENV GF_DEFAULT_APP_MODE "development"
@@ -30,14 +31,14 @@ USER root
3031# Installing supervisor and inotify-tools
3132RUN if [ "${development}" = "true" ]; then \
3233 if grep -i -q alpine /etc/issue; then \
33- apk add supervisor inotify-tools git; \
34+ apk add supervisor inotify-tools git; \
3435 elif grep -i -q ubuntu /etc/issue; then \
35- DEBIAN_FRONTEND=noninteractive && \
36- apt-get update && \
37- apt-get install -y supervisor inotify-tools git && \
38- rm -rf /var/lib/apt/lists/*; \
36+ DEBIAN_FRONTEND=noninteractive && \
37+ apt-get update && \
38+ apt-get install -y supervisor inotify-tools git && \
39+ rm -rf /var/lib/apt/lists/*; \
3940 else \
40- echo 'ERROR: Unsupported base image' && /bin/false; \
41+ echo 'ERROR: Unsupported base image' && /bin/false; \
4142 fi \
4243 fi
4344
0 commit comments