chore: update node base images (#54026)

This commit is contained in:
Oliver Eyton-Williams
2024-03-11 10:51:02 +01:00
committed by GitHub
parent 37414aaf18
commit 0225713b2a
3 changed files with 8 additions and 11 deletions
+3 -4
View File
@@ -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