11 lines
437 B
Docker
11 lines
437 B
Docker
FROM docker.io/grafana/grafana:10.0.1
|
|
|
|
USER root
|
|
|
|
# Add cap_net_bind_service to grafana-server, and set default port to 80
|
|
RUN apk add --no-cache libcap-utils --repository=http://dl-cdn.alpinelinux.org/alpine/edge/main \
|
|
&& setcap cap_net_bind_service=+ep ${GF_PATHS_HOME}/bin/grafana-server cap_net_bind_service=+ep ${GF_PATHS_HOME}/bin/grafana \
|
|
&& sed -i "s/;http_port = 3000/http_port = 80/" ${GF_PATHS_CONFIG}
|
|
|
|
USER grafana
|