|
|
|
@ -17,7 +17,7 @@ RUN echo "http://openresty.org/package/alpine/v3.12/main" \ |
|
|
|
|
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 |
|
|
|
|
#备份openresty默认配置,拷贝自定义配置 |
|
|
|
|
RUN move conf/nginx.conf conf/nginx.conf.bak |
|
|
|
|
RUN mv conf/nginx.conf conf/nginx.conf.bak |
|
|
|
|
COPY conf/nginx.conf conf/nginx.conf |
|
|
|
|
#拷贝应用代码 |
|
|
|
|
WORKDIR /app |
|
|
|
|