Dockerfile 357 B

123456789101112131415161718192021222324
  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 ./dist /usr/share/nginx/html
  10. COPY nginx.conf /etc/nginx/conf.d/default.conf
  11. EXPOSE 80
  12. CMD ["nginx", "-g", "daemon off;"]