build(dockerfile): upgrade go version
This commit is contained in:
parent
71d57927b0
commit
905afb6c43
@ -1,4 +1,4 @@
|
|||||||
FROM --platform=$BUILDPLATFORM golang:alpine AS builder
|
FROM --platform=$BUILDPLATFORM golang:1.15-alpine AS builder
|
||||||
|
|
||||||
ARG TARGETPLATFORM
|
ARG TARGETPLATFORM
|
||||||
ARG BUILDPLATFORM
|
ARG BUILDPLATFORM
|
||||||
@ -9,7 +9,7 @@ ADD . .
|
|||||||
RUN GOOS=$(echo $TARGETPLATFORM | cut -f1 -d/) && \
|
RUN GOOS=$(echo $TARGETPLATFORM | cut -f1 -d/) && \
|
||||||
GOARCH=$(echo $TARGETPLATFORM | cut -f2 -d/) && \
|
GOARCH=$(echo $TARGETPLATFORM | cut -f2 -d/) && \
|
||||||
GOARM=$(echo $TARGETPLATFORM | cut -f3 -d/ | sed "s/v//" ) && \
|
GOARM=$(echo $TARGETPLATFORM | cut -f3 -d/ | sed "s/v//" ) && \
|
||||||
CGO_ENABLED=0 GOOS=${GOOS} GOARCH=${GOARCH} GOARM=${GOARM} go build -a -mod vendor -tags netgo ./cmd/rc-record/
|
CGO_ENABLED=0 GOOS=${GOOS} GOARCH=${GOARCH} GOARM=${GOARM} go build -a -tags netgo ./cmd/rc-record/
|
||||||
|
|
||||||
|
|
||||||
FROM gcr.io/distroless/static
|
FROM gcr.io/distroless/static
|
||||||
|
Loading…
Reference in New Issue
Block a user