You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Dockerfile
+13-15Lines changed: 13 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -1,29 +1,27 @@
1
1
# syntax=docker/dockerfile:1.2
2
2
ARG GO_VERSION=1.14
3
-
ARG GORELEASER_VERSION=0.157.0
4
3
4
+
FROM --platform=$BUILDPLATFORM crazymax/goreleaser-xx:latest AS goreleaser-xx
5
5
FROM --platform=$BUILDPLATFORM golang:${GO_VERSION}-alpine AS base
6
-
ARG GORELEASER_VERSION
7
-
RUN apk add --no-cache ca-certificates curl gcc file git linux-headers musl-dev tar
8
-
RUN wget -qO- https://github.com/goreleaser/goreleaser/releases/download/v${GORELEASER_VERSION}/goreleaser_Linux_x86_64.tar.gz | tar -zxvf - goreleaser \
9
-
&& mv goreleaser /usr/local/bin/goreleaser
6
+
COPY --from=goreleaser-xx / /
7
+
RUN apk add --no-cache ca-certificates curl file gcc git linux-headers musl-dev tar
0 commit comments