Skip to content

Commit

Permalink
fix: pnpm command
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasbacsai committed Jun 2, 2022
1 parent 34bb9f3 commit b081743
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
3 changes: 1 addition & 2 deletions src/lib/buildPacks/nestjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ const createDockerfile = async (data, image): Promise<void> => {
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 || ''} ./`);

Expand Down
3 changes: 1 addition & 2 deletions src/lib/buildPacks/nextjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ const createDockerfile = async (data, image): Promise<void> => {
});
}
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}`);
Expand Down
3 changes: 1 addition & 2 deletions src/lib/buildPacks/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ const createDockerfile = async (data, image): Promise<void> => {
});
}
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}`);
Expand Down
3 changes: 1 addition & 2 deletions src/lib/buildPacks/nuxtjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ const createDockerfile = async (data, image): Promise<void> => {
});
}
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}`);
Expand Down
3 changes: 1 addition & 2 deletions src/lib/docker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./`);
Expand Down

0 comments on commit b081743

Please sign in to comment.