diff --git a/Dockerfile b/Dockerfile index a2331ec62..1c52650b5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,6 +40,12 @@ WORKDIR /ghostfolio/dist/apps/api COPY ./package-lock.json /ghostfolio/dist/apps/api/ RUN npm install + +# The Prisma CLI is a dev dependency and therefore not part of the generated +# package.json, but prisma generate needs to resolve it from the same +# node_modules directory as @prisma/client +RUN npm install prisma@$(node -p "require('/ghostfolio/package.json').devDependencies.prisma") + COPY .config /ghostfolio/dist/apps/api/.config/ COPY prisma /ghostfolio/dist/apps/api/prisma/