From ede3adc7d469c23fd923905dff869822aaebcd36 Mon Sep 17 00:00:00 2001 From: Chiang Fong Lee Date: Wed, 25 Sep 2019 19:24:21 +0800 Subject: [PATCH] Build: Fix Dockerfile glibc version error (#19394) Change the base image for the golang build stage from golang:1.12.9 (Debian 'Buster' 10) to golang:1.12.9-stretch (Debian 'Stretch' 9), so that the glibc version in golang build stage matches the glibc version in the final container based on ubuntu:18.04. Otherwise, the built binaries cannot execute in the final container. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 44091bfdab0..a3898a71e54 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Golang build container -FROM golang:1.12.9 +FROM golang:1.12.9-stretch WORKDIR $GOPATH/src/github.com/grafana/grafana