mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
chore: update node base images (#54026)
This commit is contained in:
committed by
GitHub
parent
37414aaf18
commit
0225713b2a
@@ -1,5 +1,4 @@
|
||||
# bookworm was only released on 10-6-2023, so is a little too new.
|
||||
FROM node:18-bullseye AS builder
|
||||
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@8
|
||||
@@ -34,7 +33,7 @@ RUN pnpm build:curriculum
|
||||
|
||||
RUN pnpm build:server
|
||||
|
||||
FROM node:18-bullseye AS deps
|
||||
FROM node:20-bookworm AS deps
|
||||
|
||||
WORKDIR /home/node/build
|
||||
COPY --chown=node:node pnpm*.yaml .
|
||||
@@ -46,7 +45,7 @@ RUN npm i -g pnpm@8
|
||||
RUN pnpm config set dedupe-peer-dependents false
|
||||
RUN pnpm -F=api-server -F=shared install --prod --ignore-scripts
|
||||
|
||||
FROM node:18-alpine
|
||||
FROM node:20-alpine
|
||||
RUN npm i -g pm2@4
|
||||
USER node
|
||||
WORKDIR /home/node/fcc
|
||||
|
||||
Reference in New Issue
Block a user