mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 10:22:16 +00:00
chore: update required pnpm version to >=10 (#60285)
This commit is contained in:
committed by
GitHub
parent
7c4ebb4671
commit
7a424171d2
@@ -2,7 +2,7 @@ FROM node:20-bookworm AS builder
|
||||
RUN apt-get update && apt-get install -y jq
|
||||
# global installs need root permissions, so have to happen before we switch to
|
||||
# the node user
|
||||
RUN npm i -g pnpm@9
|
||||
RUN npm i -g pnpm@10
|
||||
# node images create a non-root user that we can use
|
||||
USER node
|
||||
WORKDIR /home/node/build
|
||||
@@ -45,7 +45,7 @@ COPY --chown=node:node api/ api/
|
||||
COPY --chown=node:node shared/ shared/
|
||||
# TODO: Remove once `@fastify/oauth2` is fixed
|
||||
COPY --chown=node:node patches/ patches/
|
||||
RUN npm i -g pnpm@9
|
||||
RUN npm i -g pnpm@10
|
||||
|
||||
# Weirdly this config does not seem necessary for the new api (the same number
|
||||
# of deps are installed in both cases), but I'm including it just for
|
||||
|
||||
@@ -8,6 +8,6 @@ LABEL org.opencontainers.image.source=https://github.com/freecodecamp/freecodeca
|
||||
RUN bash -c 'VERSION="20" \
|
||||
&& source $HOME/.nvm/nvm.sh && nvm install $VERSION \
|
||||
&& nvm use $VERSION && nvm alias default $VERSION \
|
||||
&& npm i -g pnpm@9 \
|
||||
&& npm i -g pnpm@10 \
|
||||
&& echo "nvm use default &>/dev/null" >> ~/.bashrc.d/51-nvm-fix \
|
||||
&& pnpm dlx playwright@1.47.1 install --with-deps chromium'
|
||||
|
||||
@@ -5,7 +5,7 @@ ARG PROJECT_DIR=tools/screenshot-service
|
||||
FROM node:20-alpine AS builder
|
||||
ARG PROJECT_DIR
|
||||
|
||||
RUN npm i -g pnpm@9
|
||||
RUN npm i -g pnpm@10
|
||||
USER node
|
||||
WORKDIR /home/node/build
|
||||
|
||||
@@ -20,7 +20,7 @@ RUN pnpm -F=./${PROJECT_DIR} build
|
||||
FROM node:20-alpine AS deps
|
||||
ARG PROJECT_DIR
|
||||
|
||||
RUN npm i -g pnpm@9
|
||||
RUN npm i -g pnpm@10
|
||||
USER node
|
||||
WORKDIR /home/node/build
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
FROM node:20-bookworm AS builder
|
||||
# global installs need root permissions, so have to happen before we switch to
|
||||
# the node user
|
||||
RUN npm i -g pnpm@9
|
||||
RUN npm i -g pnpm@10
|
||||
# node images create a non-root user that we can use
|
||||
USER node
|
||||
WORKDIR /home/node/build
|
||||
|
||||
Reference in New Issue
Block a user