Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

use corepack to install pnpm, over regular method

Amruth Pillai5486906b055c
diff --git a/client/Dockerfile b/client/Dockerfile
index 46aed1088..b7cb9eb2e 100644
--- a/client/Dockerfile
+++ b/client/Dockerfile
@@ -2,8 +2,8 @@ FROM node:lts-alpine AS base
WORKDIR /app
-RUN apk add --no-cache g++ git curl make python3 libc6-compat \
- && curl -fsSL https://get.pnpm.io/install.sh | node - add --global pnpm
+RUN apk add --no-cache g++ git make curl python3 libc6-compat \
+ && corepack enable && corepack prepare pnpm@latest --activate
FROM base as dependencies
diff --git a/server/Dockerfile b/server/Dockerfile
index 1b7077f69..9bd02b73c 100644
--- a/server/Dockerfile
+++ b/server/Dockerfile
@@ -3,7 +3,7 @@ FROM node:lts-alpine AS base
WORKDIR /app
RUN apk add --no-cache g++ git curl make python3 libc6-compat \
- && curl -fsSL https://get.pnpm.io/install.sh | node - add --global pnpm
+ && corepack enable && corepack prepare pnpm@latest --activate
FROM base AS dependencies
@@ -29,7 +29,7 @@ WORKDIR /app
RUN apt-get update \
&& apt-get install -y curl build-essential \
- && curl -fsSL https://get.pnpm.io/install.sh | node - add --global pnpm
+ && corepack enable && corepack prepare pnpm@latest --activate
COPY --from=builder /app/package.json /app/pnpm-*.yaml ./
COPY --from=builder /app/server/package.json ./server/package.json