fix: use npx -p @nestjs/cli for nest build
This commit is contained in:
@@ -4,7 +4,7 @@ WORKDIR /app
|
||||
COPY package.json package-lock.json* ./
|
||||
COPY packages/shared/package.json ./packages/shared/
|
||||
COPY packages/db/package.json ./packages/db/
|
||||
RUN npm install --ignore-scripts && npm rebuild bcrypt
|
||||
RUN npm install
|
||||
|
||||
COPY packages/shared/ ./packages/shared/
|
||||
COPY packages/db/ ./packages/db/
|
||||
@@ -14,7 +14,7 @@ COPY src/ ./src/
|
||||
|
||||
RUN cd packages/shared && npx tsc --outDir dist --declaration
|
||||
RUN cd packages/db && npx prisma generate
|
||||
RUN npx nest build
|
||||
RUN npx -p @nestjs/cli nest build
|
||||
|
||||
FROM node:20-alpine AS runner
|
||||
WORKDIR /app
|
||||
|
||||
Reference in New Issue
Block a user