Skip to content

Commit cafc085

Browse files
committed
Upgrade Node to v22 and switch back to Yarn PnP
1 parent 7a9dd10 commit cafc085

File tree

5 files changed

+1057
-1078
lines changed

5 files changed

+1057
-1078
lines changed

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20.7.0
1+
22.13.1

.tool-versions

Lines changed: 0 additions & 1 deletion
This file was deleted.

.yarnrc.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
compressionLevel: mixed
2-
3-
enableGlobalCache: false
4-
5-
nodeLinker: node-modules
1+
nodeLinker: pnp
62

73
packageExtensions:
84
debug@*:

Dockerfile

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20
1+
FROM node:22
22

33
# Install rsync
44
RUN apt-get update && apt-get install -y rsync
@@ -10,22 +10,6 @@ WORKDIR /usr/src/app
1010
COPY .yarn/releases .yarn/releases
1111
COPY .yarnrc.yml yarn.lock package.json ./
1212

13-
# Copy only the elements needed for a Yarn install to take advantage of
14-
# Docker's layer caching
15-
# This is complex because we are working with multiple workspaces.
16-
17-
# Copy package JSON files with wildcards
18-
# This scoops up all package.json files in the directory and subdirectories
19-
# to deal with Yarn workspaces. However it requires BUILDKIT to be enabled,
20-
# which is done by setting DOCKER_BUILDKIT=1 in the environment
21-
RUN --mount=type=bind,target=/docker-context \
22-
cd /docker-context/; \
23-
find . -name "package.json" -mindepth 0 -maxdepth 5 -exec cp --parents "{}" /usr/src/app/ \;
24-
25-
RUN yarn install --immutable
26-
27-
28-
2913
# Load the cache from the previous build
3014
RUN --mount=type=cache,target=/yarn-cache \
3115
rsync -a /yarn-cache/ .yarn/cache/ \

0 commit comments

Comments
 (0)