1 Star 0 Fork 1.9K

薛凌康/进销存 - Vue+SpringBoot

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile-frontend-noinstall 2.68 KB
一键复制 编辑 原始数据 按行查看 历史
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/xuelingkang/psi.git
[email protected]:xuelingkang/psi.git
xuelingkang
psi
进销存 - Vue+SpringBoot
master

搜索帮助