mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
chore: update to node 24 (#65416)
This commit is contained in:
committed by
GitHub
parent
9b3bea4d4d
commit
4ea52e2639
@@ -1,4 +1,4 @@
|
||||
FROM node:22-bookworm AS builder
|
||||
FROM node:24-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
|
||||
@@ -31,7 +31,7 @@ RUN pnpm turbo compile
|
||||
RUN pnpm build:curriculum
|
||||
RUN pnpm -F=api build
|
||||
|
||||
FROM node:22-bookworm AS deps
|
||||
FROM node:24-bookworm AS deps
|
||||
RUN apt-get update && apt-get install -y jq
|
||||
|
||||
WORKDIR /home/node/build
|
||||
@@ -48,7 +48,7 @@ RUN pnpm config set dedupe-peer-dependents false
|
||||
RUN pnpm install --prod --ignore-scripts -F=api -F=packages/shared --frozen-lockfile
|
||||
RUN cd api && npx prisma@$(jq -r '.devDependencies.prisma' < package.json) generate
|
||||
|
||||
FROM node:22-bookworm
|
||||
FROM node:24-bookworm
|
||||
USER node
|
||||
WORKDIR /home/node/fcc
|
||||
COPY --from=builder --chown=node:node /home/node/build/api/dist/ ./
|
||||
|
||||
Reference in New Issue
Block a user