From 905afb6c436e3171db5ff0d09187c8654153e743 Mon Sep 17 00:00:00 2001 From: Cyrille Nofficial Date: Mon, 22 Feb 2021 18:39:09 +0100 Subject: [PATCH] build(dockerfile): upgrade go version --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3344c05..211d574 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$BUILDPLATFORM golang:alpine AS builder +FROM --platform=$BUILDPLATFORM golang:1.15-alpine AS builder ARG TARGETPLATFORM ARG BUILDPLATFORM @@ -9,7 +9,7 @@ ADD . . RUN GOOS=$(echo $TARGETPLATFORM | cut -f1 -d/) && \ GOARCH=$(echo $TARGETPLATFORM | cut -f2 -d/) && \ GOARM=$(echo $TARGETPLATFORM | cut -f3 -d/ | sed "s/v//" ) && \ - CGO_ENABLED=0 GOOS=${GOOS} GOARCH=${GOARCH} GOARM=${GOARM} go build -a -mod vendor -tags netgo ./cmd/rc-record/ + CGO_ENABLED=0 GOOS=${GOOS} GOARCH=${GOARCH} GOARM=${GOARM} go build -a -tags netgo ./cmd/rc-record/ FROM gcr.io/distroless/static