fix: use npx -p @nestjs/cli for nest build

This commit is contained in:
kevin-asprec
2026-04-13 12:14:07 +08:00
parent a03d803963
commit d1ff021007

View File

@@ -17,7 +17,7 @@ COPY src/ ./src/
RUN cd packages/shared && npx tsc --outDir dist --declaration
RUN cd packages/admin-db && DATABASE_ADMIN_URL="postgresql://placeholder" npx prisma generate
RUN cd packages/db && DATABASE_URL="postgresql://placeholder" npx prisma generate
RUN npx nest build
RUN npx -p @nestjs/cli nest build
FROM node:20-alpine AS runner
WORKDIR /app