提交 248f543e 作者: 蔡东坡

更新 Dockerfile

上级 6ba16a35
...@@ -5,10 +5,10 @@ RUN apk update && apk upgrade && \ ...@@ -5,10 +5,10 @@ RUN apk update && apk upgrade && \
apk add --no-cache bash git openssh apk add --no-cache bash git openssh
RUN npm config set registry http://172.18.0.1:9000/repository/node-public && npm install RUN npm config set registry http://172.18.0.1:9000/repository/node-public && npm install
COPY . . COPY . .
RUN npm run lan # RUN npm run lan
FROM registry-vpc.cn-beijing.aliyuncs.com/qianjia2018/qianjia_public:dist-nginx as production-stage # FROM registry-vpc.cn-beijing.aliyuncs.com/qianjia2018/qianjia_public:dist-nginx as production-stage
#FROM nginx:1.13.12-alpine as production-stage # #FROM nginx:1.13.12-alpine as production-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html # COPY --from=build-stage /app/dist /usr/share/nginx/html
EXPOSE 80 # EXPOSE 80
CMD ["nginx", "-g", "daemon off;"] # CMD ["nginx", "-g", "daemon off;"]
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论