代码拉取完成,页面将自动刷新
### STAGE 1: Build ###
# We label our stage as 'builder'
FROM node:8-alpine as builder
WORKDIR /app
RUN npm config set user 0
RUN npm config set unsafe-perm true
RUN npm config set registry http://registry.npm.taobao.org/
RUN npm install -g @vue/cli
COPY . /app
RUN npm install
RUN npm run generate
### STAGE 2: Setup ###
FROM nginx:1.13.3-alpine
## Copy our default nginx config
#COPY nginx/conf.d/default.conf /etc/nginx/conf.d/
## Remove default nginx website
RUN rm -rf /usr/share/nginx/html/*
## From 'builder' stage copy over the artifacts in dist folder to default nginx public folder
COPY --from=builder /app/dist /usr/share/nginx/html
CMD ["nginx", "-g", "daemon off;"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。