Dockerfile.web 304 B

123456789101112
  1. FROM node:20-alpine AS builder
  2. WORKDIR /app
  3. COPY web/package.json ./
  4. RUN npm install --legacy-peer-deps
  5. COPY web/ .
  6. RUN npm run build
  7. FROM nginx:alpine
  8. COPY --from=builder /app/dist /usr/share/nginx/html
  9. COPY deploy/nginx.conf /etc/nginx/conf.d/default.conf
  10. EXPOSE 80
  11. CMD ["nginx", "-g", "daemon off;"]