main
黄海 11 months ago
parent d9cc9d5dc1
commit d69b13fe10

@ -4,10 +4,10 @@ FROM openresty/openresty:1.21.4.1-0-alpine AS runner
ENV TZ=Asia/Shanghai
# 将本地的Nginx配置文件复制到镜像中的指定路径
COPY ./nginx.conf /etc/nginx/nginx.conf
COPY ./nginx.conf /usr/local/openresty/nginx/conf/nginx.conf
# 将本地的静态资源文件复制到镜像中的指定路径
COPY /static /usr/share/nginx/html
COPY /static /usr/local/openresty/nginx/html
# 暴露Nginx服务的端口
EXPOSE 80

Loading…
Cancel
Save