From a7277ad380d528a8932b4ef09f31aa8511677347 Mon Sep 17 00:00:00 2001 From: Kaan Yagci Date: Fri, 29 Mar 2024 16:43:14 +0100 Subject: [PATCH] chore: update Dockerfile" Signed-off-by: Kaan Yagci --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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