From f3963f02691b09ef76ec54b35b8adcf4763485bb Mon Sep 17 00:00:00 2001 From: lwch Date: Wed, 10 Nov 2021 14:37:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96Dockerfile=EF=BC=8C=E5=8D=87?= =?UTF-8?q?=E7=BA=A7go=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- contrib/build/Dockerfile | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/contrib/build/Dockerfile b/contrib/build/Dockerfile index 3406f7b..3d353b9 100644 --- a/contrib/build/Dockerfile +++ b/contrib/build/Dockerfile @@ -1,9 +1,13 @@ +ARG APT_MIRROR=mirrors.ustc.edu.cn +ARG LIBPNG_VERSION=1.6.37 +ARG GO_VERSION=1.17.3 +ARG GO_PROXY=https://goproxy.cn,direct + # build libpng FROM debian:bullseye-slim as libpng -ARG APT_MIRROR=mirrors.ustc.edu.cn -ARG LIBPNG_VERSION=1.6.37 -ARG BUILD_VERSION=0.5.0 +ARG APT_MIRROR +ARG LIBPNG_VERSION WORKDIR /build @@ -25,9 +29,9 @@ RUN sed -i "s|deb.debian.org|$APT_MIRROR|g" /etc/apt/sources.list && \ FROM debian:bullseye-slim -ARG APT_MIRROR=mirrors.ustc.edu.cn -ARG GO_VERSION=1.17.2 -ARG GO_PROXY=https://goproxy.cn,direct +ARG APT_MIRROR +ARG GO_VERSION +ARG GO_PROXY VOLUME /build WORKDIR /build