代码拉取完成,页面将自动刷新
同步操作将从 crudapi/crudapi-admin-web 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
FROM node:lts-alpine as builder
RUN apk add jq
COPY package.json /crudapi-admin-web/package.json
WORKDIR /crudapi-admin-web
RUN npm install
COPY . /crudapi-admin-web/
WORKDIR /crudapi-admin-web
RUN npm run build && \
version=`cat package.json | jq .version | sed 's/\"//g'` && \
echo $version && \
mkdir -p /crudapi/dist/crudapi-admin-web/$version && \
cd ./dist/spa && \
tar -zcvf crudapi-admin-web-$version.tar.gz crudapi && \
cp ./crudapi-admin-web-$version.tar.gz /crudapi/dist/crudapi-admin-web/$version && \
rm -rf crudapi-admin-web-$version.tar.gz
FROM nginx:latest
WORKDIR /crudapi-admin-web
COPY --from=builder /crudapi-admin-web/dist/spa .
COPY --from=builder /crudapi/dist /crudapi/dist/
COPY ./docker/default.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
COPY run.sh run.sh
CMD ["/crudapi-admin-web/run.sh"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。