Revert "ISSUE-313-BUILDX"

This commit is contained in:
Andrea Spacca
2020-06-14 20:01:38 +02:00
committed by GitHub
parent 68212d100e
commit c8497fb27d
2 changed files with 1 additions and 74 deletions

View File

@@ -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