ckt的看板部分
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
411 B

4 years ago
  1. FROM node:10 as build-stage
  2. WORKDIR /app
  3. COPY package*.json ./
  4. RUN npm set strict-ssl false
  5. RUN npm config set registry http://registry.npm.taobao.org
  6. RUN npm install
  7. COPY . .
  8. RUN npm run build
  9. # production stage
  10. FROM nginx:1.13.12-alpine as production-stage
  11. RUN mkdir /usr/share/nginx/html/monitor
  12. COPY --from=build-stage /app/dist /usr/share/nginx/html/monitor
  13. EXPOSE 80
  14. CMD ["nginx", "-g", "daemon off;"]