Skip to content

Commit bff3bfb

Browse files
authored
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
1 parent a6335ae commit bff3bfb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

config-ui/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#While incubation status is not necessarily a reflection of the completeness or stability of the code,
2424
#it does indicate that the project has yet to be fully endorsed by the ASF.
2525

26-
FROM node:18-bookworm-slim as builder
26+
FROM --platform=$BUILDPLATFORM node:22-bookworm-slim AS builder
2727

2828
WORKDIR /home/node/code
2929
COPY . .
@@ -47,4 +47,4 @@ RUN chmod +x /usr/bin/nginx.sh
4747
RUN chgrp -R 0 /etc/nginx /var/log/nginx /usr/share/nginx /run && \
4848
chmod -R g=u /etc/nginx /var/log/nginx /usr/share/nginx /run
4949
USER 101
50-
CMD /usr/bin/nginx.sh
50+
CMD ["/usr/bin/nginx.sh"]

0 commit comments

Comments
 (0)