From 1bb45e069627ca697fda505ae3992932b2324123 Mon Sep 17 00:00:00 2001 From: Zoey Date: Sun, 28 Jan 2024 00:38:14 +0100 Subject: [PATCH] show go version Signed-off-by: Zoey --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 562c3be..5b9be0c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,12 +3,15 @@ ARG CLOUDFLARED_VERSION=2024.1.5 RUN apk add --no-cache ca-certificates git build-base bash && \ git clone --recursive https://github.com/cloudflare/cloudflared --branch "$CLOUDFLARED_VERSION" /src && \ - /src/.teamcity/install-cloudflare-go.sh + /src/.teamcity/install-cloudflare-go.sh && \ + go version -ARG CGO_ENABLED=0 \ +ARG PATH="/tmp/go/bin:$PATH" \ + CGO_ENABLED=0 \ TARGETARCH \ TARGETOS RUN cd /src && \ + go version && \ GOARCH="$TARGETARCH" GOOS="$TARGETOS" make -j "$(nproc)" cloudflared LINK_FLAGS="-s -w" && \ file /src/cloudflared