12345678910111213141516171819202122232425 |
- FROM node:current-alpine
- WORKDIR /app
- RUN corepack enable
- COPY . .
- RUN pnpm i --frozen-lockfile
- RUN pnpm --filter server build
- RUN pnpm --filter server deploy pruned --prod
- FROM node:current-alpine
- WORKDIR /app
- RUN corepack enable
- ENV NODE_ENV=production
- COPY --from=0 /app/pruned/dist .
- COPY --from=0 /app/pruned/node_modules node_modules
- EXPOSE 80
- CMD [ "node", "index" ]
|