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.

18 lines
484 B

  1. FROM node:12.16.1
  2. WORKDIR /gva_web/
  3. COPY web/ .
  4. RUN npm install -g cnpm --registry=https://registry.npm.taobao.org
  5. RUN cnpm install || npm install
  6. RUN npm run build
  7. FROM nginx:alpine
  8. LABEL MAINTAINER="SliverHorn@sliver_horn@qq.com"
  9. COPY .docker-compose/nginx/conf.d/my.conf /etc/nginx/conf.d/my.conf
  10. COPY --from=0 /gva_web/dist /usr/share/nginx/html
  11. RUN cat /etc/nginx/nginx.conf
  12. RUN cat /etc/nginx/conf.d/my.conf
  13. RUN ls -al /usr/share/nginx/html
  14. CMD ls -al /usr/share/nginx/html