diff --git a/Dockerfile b/Dockerfile index 13b8769d0be195d1b0ebee987c8ef432bb2a9fb8..a99aad828f5a110eae719a6fa751bc2a2c25cf33 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,29 +1,5 @@ -FROM nginx -MAINTAINER jeecgos@163.com -VOLUME /tmp -ENV LANG en_US.UTF-8 -RUN echo "server { \ - listen 80; \ - location ^~ /jeecg-boot { \ - proxy_pass http://jeecg-boot-system:8080/jeecg-boot/; \ - proxy_set_header Host jeecg-boot-system; \ - proxy_set_header X-Real-IP \$remote_addr; \ - proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for; \ - } \ - #解决Router(mode: 'history')模式下,刷新路由地址不能找到页面的问题 \ - location / { \ - root /var/www/html/; \ - index index.html index.htm; \ - if (!-e \$request_filename) { \ - rewrite ^(.*)\$ /index.html?s=\$1 last; \ - break; \ - } \ - } \ - access_log /var/log/nginx/access.log ; \ - } " > /etc/nginx/conf.d/default.conf \ - && mkdir -p /var/www \ - && mkdir -p /var/www/html - -ADD dist/ /var/www/html/ +FROM registry.cn-beijing.aliyuncs.com/sjbase/nginx:latest +RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime +ADD ./dist /usr/share/nginx/html EXPOSE 80 EXPOSE 443 \ No newline at end of file