diff --git a/src/lib/buildPacks/nestjs.ts b/src/lib/buildPacks/nestjs.ts index b0bb6ba89..9486c9e8e 100644 --- a/src/lib/buildPacks/nestjs.ts +++ b/src/lib/buildPacks/nestjs.ts @@ -10,8 +10,7 @@ const createDockerfile = async (data, image): Promise => { Dockerfile.push('WORKDIR /app'); Dockerfile.push(`LABEL coolify.buildId=${buildId}`); if (isPnpm) { - Dockerfile.push('RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm'); - Dockerfile.push('RUN pnpm add -g pnpm'); + Dockerfile.push('RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@7'); } Dockerfile.push(`COPY --from=${applicationId}:${tag}-cache /app/${baseDirectory || ''} ./`); diff --git a/src/lib/buildPacks/nextjs.ts b/src/lib/buildPacks/nextjs.ts index 77f5bc5f8..5ebb30410 100644 --- a/src/lib/buildPacks/nextjs.ts +++ b/src/lib/buildPacks/nextjs.ts @@ -35,8 +35,7 @@ const createDockerfile = async (data, image): Promise => { }); } if (isPnpm) { - Dockerfile.push('RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm'); - Dockerfile.push('RUN pnpm add -g pnpm'); + Dockerfile.push('RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@7'); } Dockerfile.push(`COPY .${baseDirectory || ''} ./`); Dockerfile.push(`RUN ${installCommand}`); diff --git a/src/lib/buildPacks/node.ts b/src/lib/buildPacks/node.ts index 9d8e643ef..46043593b 100644 --- a/src/lib/buildPacks/node.ts +++ b/src/lib/buildPacks/node.ts @@ -36,8 +36,7 @@ const createDockerfile = async (data, image): Promise => { }); } if (isPnpm) { - Dockerfile.push('RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm'); - Dockerfile.push('RUN pnpm add -g pnpm'); + Dockerfile.push('RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@7'); } Dockerfile.push(`COPY .${baseDirectory || ''} ./`); Dockerfile.push(`RUN ${installCommand}`); diff --git a/src/lib/buildPacks/nuxtjs.ts b/src/lib/buildPacks/nuxtjs.ts index 9cd7e9674..e1fded7f2 100644 --- a/src/lib/buildPacks/nuxtjs.ts +++ b/src/lib/buildPacks/nuxtjs.ts @@ -35,8 +35,7 @@ const createDockerfile = async (data, image): Promise => { }); } if (isPnpm) { - Dockerfile.push('RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm'); - Dockerfile.push('RUN pnpm add -g pnpm'); + Dockerfile.push('RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@7'); } Dockerfile.push(`COPY .${baseDirectory || ''} ./`); Dockerfile.push(`RUN ${installCommand}`); diff --git a/src/lib/docker.ts b/src/lib/docker.ts index 0b60a4ed9..864b32b62 100644 --- a/src/lib/docker.ts +++ b/src/lib/docker.ts @@ -66,8 +66,7 @@ export async function buildCacheImageWithNode(data, imageForBuild) { }); } if (isPnpm) { - Dockerfile.push('RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm'); - Dockerfile.push('RUN pnpm add -g pnpm'); + Dockerfile.push('RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@7'); } if (installCommand) { Dockerfile.push(`COPY .${baseDirectory || ''}/package.json ./`);