Dockerfile 448 B

1234567891011121314151617
  1. FROM node:12.16.1
  2. WORKDIR /gva_web/
  3. COPY . .
  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@[email protected]"
  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