From c544a99f40b5f989dbdb8128bc6b6a5b247db528 Mon Sep 17 00:00:00 2001 From: johlanse Date: Mon, 14 Feb 2022 16:58:47 +0800 Subject: [PATCH] =?UTF-8?q?docker=20=E6=B7=BB=E5=8A=A0=E5=9B=BD=E5=86=85?= =?UTF-8?q?=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7452a08..b2949d8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,9 +5,10 @@ ARG BUILDARCH ENV CGO_ENABLED="0" ENV GOOS="linux" +ENV GOPROXY="https://goproxy.cn" ARG UPX_VERSION="3.96" -RUN apt update && apt install -y xz-utils git gcc curl +RUN sed -i "s@http://deb.debian.org@https://mirrors.163.com@g" /etc/apt/sources.list && apt update && apt install -y xz-utils git gcc curl COPY / /study_xxqg RUN cd /study_xxqg && \ version=$(git describe --tags --long --always) && \