Skip to content

Commit

Permalink
detect pnpm version and install it
Browse files Browse the repository at this point in the history
  • Loading branch information
kakkokari-gtyih committed Mar 5, 2025
1 parent c2c4380 commit 6235371
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ WORKDIR /misskey
# add package.json to add pnpm
COPY --chown=misskey:misskey ./package.json ./package.json

RUN wget -qO- https://get.pnpm.io/install.sh | ENV="$HOME/.shrc" SHELL="$(which sh)" sh -
RUN wget -qO- https://get.pnpm.io/install.sh | PNPM_VERSION="$(jq -r '.packageManager | sub("pnpm@(?<a>[\\d.]+)$"; "\(.a)")' package.json)" ENV="$HOME/.shrc" SHELL="$(which sh)" sh -

COPY --chown=misskey:misskey --from=target-builder /misskey/node_modules ./node_modules
COPY --chown=misskey:misskey --from=target-builder /misskey/packages/backend/node_modules ./packages/backend/node_modules
Expand Down

0 comments on commit 6235371

Please sign in to comment.