running the command
nest build
never finishes
I'm using docker to build the api this is my docker config .
FROM node:16 as deps-installer
WORKDIR /usr/src/app/api
COPY package.json /usr/src/app/api/
COPY yarn.lock /usr/src/app/api/
RUN yarn install --legacy-peer-deps
####### install the project #######
####### development target #######
FROM deps-installer as development
CMD ["yarn", "start:dev"]
####### builder target #######
FROM deps-installer as builder
WORKDIR /usr/src/app/api/
COPY . .
RUN yarn build
####### prod target #######
FROM node:16 as production
WORKDIR /usr/src/app/api/
COPY --from=builder /usr/src/app/api/tsconfig*.json ./
COPY --from=builder /usr/src/app/api/node_modules ./node_modules
COPY --from=builder /usr/src/app/api/package*.json ./
COPY --from=builder /usr/src/app/api/src/migrations ./src/migrations
COPY --from=builder /usr/src/app/api/dist ./dist
COPY --from=builder /usr/src/app/api/yarn.lock ./
EXPOSE 3000
CMD ["yarn", "start:prod"]```