From af2bf8b63f3e7c86ce724f217949b81ab09170cf Mon Sep 17 00:00:00 2001 From: pan <1029559041@qq.com> Date: Sat, 10 Oct 2020 23:48:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0openresty?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 3d3d132..8735c34 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ COPY shell/* /app/ RUN ln -s /app/* /usr/local/bin/ && chmod +x /app/* #启用 openresty 仓库 COPY admin@openresty.com-5ea678a6.rsa.pub /etc/apk/keys/admin@openresty.com-5ea678a6.rsa.pub -RUN MAJOR_VER=`echo $VERSION_ID | sed 's/\.[0-9]\+$//'` && echo "http://openresty.org/package/alpine/v$MAJOR_VER/main" \ +RUN echo "http://openresty.org/package/alpine/v`echo $VERSION_ID | sed 's/\.[0-9]\+$//'`/main" \ | tee -a /etc/apk/repositories #使用阿里云镜像源安装git openssh curl openresty RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories && apk update && apk add git openssh curl openresty