If you are experiencing an issue where the Docker image build is hanging, this may be due to the pnpm install -r command.


Simply refactor the Dockerfile to the original form of separate installs to resolve this:


RUN npm install -g pnpm

RUN pnpm install

COPY apps/notifications apps/notifications
COPY libs libs

RUN cd apps/notifications && pnpm install