Dockerfile 313 B

12345678910111213141516171819
  1. FROM gplane/pnpm:7-alpine as builder
  2. COPY package.json pnpm-lock.yaml /
  3. RUN pnpm i --frozen-lockfile
  4. COPY . /
  5. RUN pnpm build
  6. FROM gplane/pnpm:7-alpine
  7. ENV NODE_ENV=production
  8. COPY package.json pnpm-lock.yaml /
  9. RUN pnpm i --frozen-lockfile --prod
  10. COPY --from=builder dist /
  11. ENTRYPOINT ["node", "/index.js"]