增加openresty

master
pan 4 years ago
parent af2bf8b63f
commit 8f8c675f6d
  1. 2
      Dockerfile

@ -11,7 +11,7 @@ COPY shell/* /app/
RUN ln -s /app/* /usr/local/bin/ && chmod +x /app/* RUN ln -s /app/* /usr/local/bin/ && chmod +x /app/*
#启用 openresty 仓库 #启用 openresty 仓库
COPY admin@openresty.com-5ea678a6.rsa.pub /etc/apk/keys/admin@openresty.com-5ea678a6.rsa.pub COPY admin@openresty.com-5ea678a6.rsa.pub /etc/apk/keys/admin@openresty.com-5ea678a6.rsa.pub
RUN echo "http://openresty.org/package/alpine/v`echo $VERSION_ID | sed 's/\.[0-9]\+$//'`/main" \ RUN echo "http://openresty.org/package/alpine/v3.12/main" \
| tee -a /etc/apk/repositories | tee -a /etc/apk/repositories
#使用阿里云镜像源安装git openssh curl openresty #使用阿里云镜像源安装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 RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories && apk update && apk add git openssh curl openresty

Loading…
Cancel
Save