You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
425 B

  1. FROM node:16-alpine as build-stage
  2. WORKDIR /app
  3. RUN corepack enable
  4. RUN corepack prepare [email protected] --activate
  5. RUN npm config set registry https://registry.npmmirror.com
  6. COPY .npmrc package.json pnpm-lock.yaml ./
  7. RUN pnpm install --frozen-lockfile
  8. COPY . .
  9. RUN pnpm build
  10. FROM nginx:stable-alpine as production-stage
  11. COPY --from=build-stage /app/dist /usr/share/nginx/html
  12. EXPOSE 80
  13. CMD ["nginx", "-g", "daemon off;"]