Docker, try install @prisma/client and hangs indefinetly... #4329
-
When i try to build image it hangs indefinitely Here is Docker file: FROM node:16
WORKDIR /usr/src/app
RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm
RUN pnpm init -y
RUN --mount=type=cache,id=pnpm-store,target=/root/.pnpm-store\
pnpm add @prisma/client
CMD ["echo", "end"] Logs:
I am curious is it a bug or why it is working like that? If you try put instead of |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The problem is with prisma postinstall script. ENV PRISMA_SKIP_POSTINSTALL_GENERATE=true Thanks to @weyert |
Beta Was this translation helpful? Give feedback.
-
When running the Dockerfile with
But then it hangs out on the
Full logs
Interesting bit is that I could make it work with either
|
Beta Was this translation helpful? Give feedback.
The problem is with prisma postinstall script.
This fixed problem:
ENV PRISMA_SKIP_POSTINSTALL_GENERATE=true
Thanks to @weyert