From dbdaae9039bad6f6d7b08ed18a4fe261d64b764a Mon Sep 17 00:00:00 2001 From: Andrea Spacca Date: Sat, 20 Jun 2020 20:19:19 +0200 Subject: [PATCH] ISSUE-313-BUILDX --- Dockerfile | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6ba642c..0018ba1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,6 @@ # Default to Go 1.13 ARG GO_VERSION=1.13 -FROM --platform=$BUILDPLATFORM golang:${GO_VERSION}-alpine as build - -# Convert TARGETPLATFORM to GOARCH format -# https://github.com/tonistiigi/xx -COPY --from=tonistiigi/xx:golang / / - -ARG TARGETPLATFORM +FROM golang:${GO_VERSION}-alpine as build # Necessary to run 'go get' and to compile the linked binary RUN apk add git musl-dev