Przeglądaj źródła

ISSUE-313-BUILDX

pull/316/head
Andrea Spacca 3 lat temu
rodzic
commit
dbdaae9039
1 zmienionych plików z 1 dodań i 7 usunięć
  1. +1
    -7
      Dockerfile

+ 1
- 7
Dockerfile Wyświetl plik

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


Ładowanie…
Anuluj
Zapisz