| 123456789101112131415161718192021 |
- FROM node:18-alpine AS build
- WORKDIR /app
- COPY package.json pnpm-lock.yaml ./
- RUN npm install -g pnpm && pnpm install
- COPY . .
- RUN pnpm build
- FROM nginx:alpine AS runtime
- COPY --from=build /app/dist /usr/share/nginx/html
- COPY nginx.conf /etc/nginx/conf.d/default.conf
- EXPOSE 80
- CMD ["nginx", "-g", "daemon off;"]
|