This is an automated email from the ASF dual-hosted git repository.

klesh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new bff3bfb31 fix(docker): Add BUILDPLATFORM to config-ui builder stage 
and update node version (#8845)
bff3bfb31 is described below

commit bff3bfb3185f6a669a1aa19f9594c73fcd40d418
Author: Leif Roger Frøysaa <[email protected]>
AuthorDate: Sat Apr 25 14:56:40 2026 +0200

    fix(docker): Add BUILDPLATFORM to config-ui builder stage and update node 
version (#8845)
    
    - Use BUILDPLATFORM so the Node builder runs natively on the build host
    (e.g. arm64 on Apple Silicon) rather than under x64 emulation which can
    cause crashes
    - Node 22 LTS builder replaces v18 which reached EOL in April 2025
---
 config-ui/Dockerfile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/config-ui/Dockerfile b/config-ui/Dockerfile
index 7fadb956b..075747d95 100644
--- a/config-ui/Dockerfile
+++ b/config-ui/Dockerfile
@@ -23,7 +23,7 @@
 #While incubation status is not necessarily a reflection of the completeness 
or stability of the code,
 #it does indicate that the project has yet to be fully endorsed by the ASF.
 
-FROM node:18-bookworm-slim as builder
+FROM --platform=$BUILDPLATFORM node:22-bookworm-slim AS builder
 
 WORKDIR /home/node/code
 COPY . .
@@ -47,4 +47,4 @@ RUN chmod +x /usr/bin/nginx.sh
 RUN chgrp -R 0 /etc/nginx /var/log/nginx /usr/share/nginx /run && \
     chmod -R g=u /etc/nginx /var/log/nginx /usr/share/nginx /run
 USER 101
-CMD /usr/bin/nginx.sh
+CMD ["/usr/bin/nginx.sh"]

Reply via email to