Dockerfile 332 B

12345678910111213141516
  1. FROM node:20-alpine as build-stage
  2. WORKDIR /app
  3. RUN corepack enable
  4. RUN corepack prepare pnpm@latest --activate
  5. RUN npm config set registry https://registry.npmmirror.com
  6. COPY . .
  7. FROM nginx:stable-alpine as production-stage
  8. COPY --from=build-stage /app/dist /usr/share/nginx/html
  9. EXPOSE 80
  10. CMD ["nginx", "-g", "daemon off;"]