代码拉取完成,页面将自动刷新
同步操作将从 Finer/进销存 - Vue+SpringBoot 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
FROM registry.cn-zhangjiakou.aliyuncs.com/publicx/node:v14.16.1
COPY ./ant-design-vue-jeecg /ant-design-vue-jeecg
RUN echo 'deb http://mirrors.aliyun.com/debian/ buster main non-free contrib' > /etc/apt/sources.list && \
echo 'deb http://mirrors.aliyun.com/debian-security buster/updates main' >> /etc/apt/sources.list && \
echo 'deb http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib' >> /etc/apt/sources.list && \
echo 'deb http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib' >> /etc/apt/sources.list && \
apt-get update && \
apt-get install -y git && \
apt-get clean
RUN npm install --global yarn @vue/cli --registry https://registry.npm.taobao.org && \
yarn config set registry https://registry.npm.taobao.org
RUN cd /ant-design-vue-jeecg && \
yarn run build && \
yarn run lint
FROM registry.cn-zhangjiakou.aliyuncs.com/publicx/nginx:1.18.0
MAINTAINER xuelingkang
COPY --from=0 /ant-design-vue-jeecg/dist /app
RUN echo "server {" > /etc/nginx/conf.d/default.conf && \
echo " listen 80;" >> /etc/nginx/conf.d/default.conf && \
echo " server_name localhost;" >> /etc/nginx/conf.d/default.conf && \
echo " location ^~ /jeecg-boot {" >> /etc/nginx/conf.d/default.conf && \
echo " proxy_pass http://backend:8080/jeecg-boot/;" >> /etc/nginx/conf.d/default.conf && \
echo " proxy_set_header Host \$host;" >> /etc/nginx/conf.d/default.conf && \
echo " proxy_set_header Remote_Addr \$remote_addr;" >> /etc/nginx/conf.d/default.conf && \
echo " proxy_set_header X-Real-IP \$remote_addr;" >> /etc/nginx/conf.d/default.conf && \
echo " proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;" >> /etc/nginx/conf.d/default.conf && \
echo " }" >> /etc/nginx/conf.d/default.conf && \
echo " location / {" >> /etc/nginx/conf.d/default.conf && \
echo " root /app/;" >> /etc/nginx/conf.d/default.conf && \
echo " index index.html index.htm;" >> /etc/nginx/conf.d/default.conf && \
echo " if (!-e \$request_filename) {" >> /etc/nginx/conf.d/default.conf && \
echo " rewrite ^(.*)\$ /index.html?s=\$1 last;" >> /etc/nginx/conf.d/default.conf && \
echo " break;" >> /etc/nginx/conf.d/default.conf && \
echo " }" >> /etc/nginx/conf.d/default.conf && \
echo " }" >> /etc/nginx/conf.d/default.conf && \
echo " access_log /var/log/nginx/access.log;" >> /etc/nginx/conf.d/default.conf && \
echo "}" >> /etc/nginx/conf.d/default.conf
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo "Asia/Shanghai" > /etc/timezone
EXPOSE 80
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。