From d1cf213b10c4b93452d416986541fa6ee8e861f0 Mon Sep 17 00:00:00 2001 From: SexyERIC0723 Date: Wed, 11 Mar 2026 17:40:11 +0000 Subject: [PATCH] Fix Dockerfile build failure by updating Node.js version Update base image from node:20.18.1-slim to node:20.19.0-slim across all Dockerfiles. lerna@9.0.4 requires Node ^20.19.0, so the previous version caused yarn install to fail during Docker builds. Fixes #5860 Signed-off-by: haoyu-haoyu --- Dockerfile | 2 +- platform/app/.recipes/Nginx-Dcm4chee-Keycloak/dockerfile | 2 +- platform/app/.recipes/Nginx-Dcm4chee/dockerfile | 2 +- platform/app/.recipes/Nginx-Orthanc-Keycloak/dockerfile | 2 +- platform/app/.recipes/Nginx-Orthanc/dockerfile | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 289a7f1869e..df6b2bb6714 100644 --- a/Dockerfile +++ b/Dockerfile @@ -42,7 +42,7 @@ # Stage 1: Build the application # docker build -t ohif/viewer:latest . # Copy Files -FROM node:20.18.1-slim as builder +FROM node:20.19.0-slim as builder RUN apt-get update && apt-get install -y build-essential python3 diff --git a/platform/app/.recipes/Nginx-Dcm4chee-Keycloak/dockerfile b/platform/app/.recipes/Nginx-Dcm4chee-Keycloak/dockerfile index b37eac632b3..680d2e470a2 100644 --- a/platform/app/.recipes/Nginx-Dcm4chee-Keycloak/dockerfile +++ b/platform/app/.recipes/Nginx-Dcm4chee-Keycloak/dockerfile @@ -1,5 +1,5 @@ # Stage 1: Build the application -FROM node:20.18.1-slim as builder +FROM node:20.19.0-slim as builder # Setup the working directory RUN mkdir /usr/src/app diff --git a/platform/app/.recipes/Nginx-Dcm4chee/dockerfile b/platform/app/.recipes/Nginx-Dcm4chee/dockerfile index 1edd75c42f6..1d5172d51f5 100644 --- a/platform/app/.recipes/Nginx-Dcm4chee/dockerfile +++ b/platform/app/.recipes/Nginx-Dcm4chee/dockerfile @@ -1,5 +1,5 @@ # Stage 1: Build the application -FROM node:20.18.1-slim as builder +FROM node:20.19.0-slim as builder # Setup the working directory RUN mkdir /usr/src/app diff --git a/platform/app/.recipes/Nginx-Orthanc-Keycloak/dockerfile b/platform/app/.recipes/Nginx-Orthanc-Keycloak/dockerfile index f4cadb9558d..89f4c323eac 100644 --- a/platform/app/.recipes/Nginx-Orthanc-Keycloak/dockerfile +++ b/platform/app/.recipes/Nginx-Orthanc-Keycloak/dockerfile @@ -1,5 +1,5 @@ # Stage 1: Build the application -FROM node:20.18.1-slim as builder +FROM node:20.19.0-slim as builder # Setup the working directory RUN mkdir /usr/src/app diff --git a/platform/app/.recipes/Nginx-Orthanc/dockerfile b/platform/app/.recipes/Nginx-Orthanc/dockerfile index 9408701c599..052e86a0fd0 100644 --- a/platform/app/.recipes/Nginx-Orthanc/dockerfile +++ b/platform/app/.recipes/Nginx-Orthanc/dockerfile @@ -1,5 +1,5 @@ # Stage 1: Build the application -FROM node:20.18.1-slim as builder +FROM node:20.19.0-slim as builder # Setup the working directory RUN mkdir /usr/src/app