From 6370ef8f24fbf8fcfe70caa45a5f843fe89cabb2 Mon Sep 17 00:00:00 2001 From: Saj Goonatilleke Date: Thu, 19 Nov 2020 05:07:14 +1100 Subject: [PATCH] docker: build with explicit go version It is occasionally useful to assert that our output was built with >=x version of the Go compiler or linked against >=x version of the Go standard library. While it is possible to make this assertion after the fact -- say, by dumping the value of runtime.buildVersion with a debugger -- it's usually much easier to inspect this file. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 190fb7f..38cb524 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:alpine AS builder +FROM golang:1.15.5-alpine3.12 AS builder RUN apk -v --no-progress --no-cache add git