Skip to content

Docker with pnpm install hangs on @prisma/client postinstall  #11791

@Jolg42

Description

@Jolg42

Bug description

See pnpm/pnpm#4329 and below

How to reproduce

Create an empty directory with a Dockerfile

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"]

Run docker build . --progress=plain --no-cache

Expected behavior

It should produce a Docker build.

Environment & setup

pnpm 6.30.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions