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
# See https://docs.docker.com/buildx/working-with-buildx/
ARG ARCHITECTURE=amd64
FROM golang:alpine AS build
ARG TARGETPLATFORM
ARG BUILDPLATFORM
ARG ARCHITECTURE=${ARCHITECTURE}
ENV ARCHITECTURE $ARCHITECTURE
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM" > /log
RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then ARCHITECTURE=amd64; elif [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then ARCHITECTURE=arm64; elif [ "$TARGETPLATFORM" = "linux/arm64" ]; then ARCHITECTURE=arm64; else ARCHITECTURE=amd64; fi \