提交 aa4ba263 作者: 杨大同

增加新文件

上级 c2a32223
# This file is a template, and might need editing before it works on your project.
FROM registry-vpc.cn-beijing.aliyuncs.com/qianjia2018/qianjia_public:dist-node as build-stage
WORKDIR /app
COPY package*.json ./
RUN apk update && apk upgrade && \
apk add --no-cache bash git openssh
RUN npm config set registry http://172.17.3.95:9000/repository/node-public && npm install
COPY . .
RUN npm run build
FROM registry-vpc.cn-beijing.aliyuncs.com/qianjia2018/qianjia_public:dist-nginx as production-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论