diff --git a/Dockerfile b/Dockerfile index 49567ee..3bc3580 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,8 +11,9 @@ WORKDIR /app RUN echo ${TARGETPLATFORM} RUN apt-get update -y && \ - apt-get install -y wget tar --no-install-recommends && \ - GO_ARCH=$(echo $TARGETPLATFORM | sed 's|/|-|g') && \ + apt-get install -y wget tar --no-install-recommends + +RUN export GO_ARCH=$(echo $TARGETPLATFORM | sed 's|/|-|g') && \ wget -q "https://go.dev/dl/go${GO_VERSION}.${GO_ARCH}.tar.gz" && \ tar -C /usr/local -xzf go${GO_VERSION}.${GO_ARCH}.tar.gz && \ rm ./go${GO_VERSION}.${GO_ARCH}.tar.gz