Skip to content

Commit

Permalink
chore: update Dockerfile"
Browse files Browse the repository at this point in the history
Signed-off-by: Kaan Yagci <kaan.yagci@makepad.fr>
  • Loading branch information
kaanyagci committed Mar 29, 2024
1 parent c4157b3 commit a7277ad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a7277ad

Please sign in to comment.