Dockerfile 307 B

1234567891011121314
  1. FROM node:alpine as build
  2. WORKDIR /app/kpt-system-web
  3. COPY . .
  4. RUN pnpm install
  5. RUN pnpm build
  6. RUN ls -l && pwd
  7. FROM nginx:alpine as prod
  8. WORKDIR /app/kpt-system-web
  9. RUN ls -l && pwd
  10. COPY --from=build ./dist/ /usr/share/nginx/html/
  11. COPY --from=build ./nginx.conf /etc/nginx/conf.d/default.conf
  12. EXPOSE 80