From 0167e0a6b2fb35b2b72532886eb209b2fbe91beb Mon Sep 17 00:00:00 2001 From: Franz Schwartau Date: Sun, 25 Aug 2019 16:20:52 +0200 Subject: [PATCH] Dev Docker: Use golang:1.12.9-alpine to prevent glibc mismatch. (#18701) Using golang:1.12.9 which is based on Debian as a build container leads to a version mismatch for glibc when running grafana-server in alpine:3.10 grafana-server: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by grafana-server) --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1ef942285b3..fefa8ff96f8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,7 @@ # Golang build container -FROM golang:1.12.9 +FROM golang:1.12.9-alpine + +RUN apk add --no-cache gcc g++ WORKDIR $GOPATH/src/github.com/grafana/grafana