From 33937e21e5fa9e96a21346fc304b077c7313ff7d Mon Sep 17 00:00:00 2001 From: Will Tomlin <76996781+witomlin@users.noreply.github.com> Date: Fri, 29 Nov 2024 16:04:52 +0000 Subject: [PATCH] Fix Dockerfile (#13) --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index a91661d..426d6d9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,6 +13,10 @@ # limitations under the License. FROM --platform=$BUILDPLATFORM golang:1.22.9 AS build +ARG BUILDPLATFORM +ARG TARGETPLATFORM +ARG TARGETOS +ARG TARGETARCH RUN echo "Build platform: $BUILDPLATFORM, target platform: $TARGETPLATFORM, target OS: $TARGETOS, target arch: $TARGETARCH" RUN openssl s_client -showcerts -connect proxy.golang.org:443 /dev/null|openssl x509 -outform PEM > /usr/local/share/ca-certificates/goproxy.crt RUN update-ca-certificates