|
|
@ -8,7 +8,7 @@ FROM docker:$DOCKERD_VERSION AS dockerd-release
|
|
|
|
# xgo is a helper for golang cross-compilation
|
|
|
|
# xgo is a helper for golang cross-compilation
|
|
|
|
FROM --platform=$BUILDPLATFORM tonistiigi/xx:golang@sha256:6f7d999551dd471b58f70716754290495690efa8421e0a1fcf18eb11d0c0a537 AS xgo
|
|
|
|
FROM --platform=$BUILDPLATFORM tonistiigi/xx:golang@sha256:6f7d999551dd471b58f70716754290495690efa8421e0a1fcf18eb11d0c0a537 AS xgo
|
|
|
|
|
|
|
|
|
|
|
|
FROM --platform=$BUILDPLATFORM golang:1.12-alpine AS gobase
|
|
|
|
FROM --platform=$BUILDPLATFORM golang:1.13-alpine AS gobase
|
|
|
|
COPY --from=xgo / /
|
|
|
|
COPY --from=xgo / /
|
|
|
|
RUN apk add --no-cache file git
|
|
|
|
RUN apk add --no-cache file git
|
|
|
|
ENV GOFLAGS=-mod=vendor
|
|
|
|
ENV GOFLAGS=-mod=vendor
|
|
|
|