增加openresty

master
pan 4 years ago
parent 24933dc321
commit b6b0fc816c
  1. 2
      Dockerfile

@ -12,7 +12,7 @@ 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" \
| sudo tee -a /etc/apk/repositories
| 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
WORKDIR /usr/local/openresty/nginx

Loading…
Cancel
Save