Dockerfile 275 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. FROM nginx:alpine as prod
  7. WORKDIR /app/kpt-system-web
  8. COPY --from=build ./dist/ /usr/share/nginx/html/
  9. COPY --from=build ./nginx.conf /etc/nginx/conf.d/default.conf
  10. EXPOSE 80