Dockerfile 308 B

12345678910111213141516171819202122
  1. FROM node:24-alpine AS builder
  2. WORKDIR /app
  3. COPY package.json ./
  4. RUN npm install -g pnpm && pnpm install
  5. COPY . .
  6. RUN pnpm build
  7. FROM nginx:stable-alpine
  8. COPY --from=builder /app/dist /usr/share/nginx/html
  9. COPY nginx.conf /etc/nginx/conf.d/default.conf
  10. EXPOSE 80
  11. CMD ["nginx", "-g", "daemon off;"]