Skip to content

Commit

Permalink
devops: Use latest corepack
Browse files Browse the repository at this point in the history
To avoid build issues with using an ancient or unstable version
coming with node.
  • Loading branch information
jhf committed Oct 28, 2024
1 parent 346eef5 commit 7b8f3a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ RUN if [ "$(head -n 1 .nvmrc | cut -d'.' -f1)" != "v20" ]; then \
fi

FROM base AS build
RUN corepack enable pnpm && corepack install -g pnpm
RUN corepack enable
RUN corepack prepare pnpm@latest --activate
WORKDIR /app
COPY pnpm-lock.yaml ./
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm fetch --frozen-lockfile
Expand Down
3 changes: 1 addition & 2 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,5 @@
"ts-jest": "^29.2.5",
"ts-node": "^10.9.2",
"typescript": "^5.6.3"
},
"packageManager": "[email protected]+sha512.e5a7e52a4183a02d5931057f7a0dbff9d5e9ce3161e33fa68ae392125b79282a8a8a470a51dfc8a0ed86221442eb2fb57019b0990ed24fab519bf0e1bc5ccfc4"
}
}

0 comments on commit 7b8f3a4

Please sign in to comment.