From 07da3e2ffca1c3adf7cb2f65d21f397ae436f5d7 Mon Sep 17 00:00:00 2001 From: limengxuan Date: Wed, 18 Sep 2024 14:58:33 +0800 Subject: [PATCH] Update Dockerfile --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index c8ca053..aa5de73 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,11 @@ ARG BASE_IMAGE=ubuntu:20.04 FROM $BASE_IMAGE AS build -RUN apt update -y && apt install -y gcc make wget -ARG GO_VERSION=1.22.5 -RUN wget https://golang.google.cn/dl/go$GO_VERSION.linux-arm64.tar.gz -RUN rm -rf /usr/local/go && tar -C /usr/local -xzf go$GO_VERSION.linux-arm64.tar.gz +RUN add-apt-repository ppa:longsleep/golang-backports +RUN apt update -y && apt install -y gcc make wget golang-1.22 +#ARG GO_VERSION=1.22.5 +#RUN wget https://golang.google.cn/dl/go$GO_VERSION.linux-arm64.tar.gz +#RUN rm -rf /usr/local/go && tar -C /usr/local -xzf go$GO_VERSION.linux-arm64.tar.gz ENV PATH=/usr/local/go/bin:/root/go/bin:$PATH ARG GOPROXY ARG VERSION