1 Star 0 Fork 56

humble/crudapi-admin-web

forked from crudapi/crudapi-admin-web 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 998 Bytes
一键复制 编辑 原始数据 按行查看 历史
#FROM node:14-alpine as builder
FROM registry.cn-qingdao.aliyuncs.com/dh-mirror/node:14-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
FROM registry.cn-qingdao.aliyuncs.com/dh-mirror/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"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/humble-zh/crudapi-admin-web.git
git@gitee.com:humble-zh/crudapi-admin-web.git
humble-zh
crudapi-admin-web
crudapi-admin-web
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385