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