Update dockerfile to use node 24

This commit is contained in:
Nicholas Wallace committed 2026-09-18 11:09:13 -07:00
1 parent 83e9a82f8f
commit 8a2a45751e
1 file changed
+4 -4
+4 -4
View File
@@ -2,7 +2,7 @@ ARG NUSQLITE3_DIR="/usr/local/lib/nusqlite3"
ARG NUSQLITE3_PATH="${NUSQLITE3_DIR}/libnusqlite3.so"
### STAGE 0: Build client ###
FROM node:20-alpine AS build-client
FROM node:24-alpine AS build-client
WORKDIR /client
COPY /client /client
@@ -10,7 +10,7 @@ RUN npm ci && npm cache clean --force
RUN npm run generate
### STAGE 1: Compile server on the builder CPU (avoid QEMU SIGILL from tsc on arm64) ###
FROM --platform=$BUILDPLATFORM node:20-alpine AS compile-server
FROM --platform=$BUILDPLATFORM node:24-alpine AS compile-server
WORKDIR /server
COPY index.js package* tsconfig.server.json /server
@@ -18,7 +18,7 @@ COPY /server /server/server
RUN npm ci --include=dev --ignore-scripts && npm run build:server
### STAGE 2: Install native server deps for the target arch ###
FROM node:20-alpine AS build-server
FROM node:24-alpine AS build-server
ARG NUSQLITE3_DIR
ARG TARGETPLATFORM
@@ -50,7 +50,7 @@ RUN case "$TARGETPLATFORM" in \
RUN npm ci --omit=dev
### STAGE 3: Create minimal runtime image ###
FROM node:20-alpine
FROM node:24-alpine
ARG NUSQLITE3_DIR
ARG NUSQLITE3_PATH