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