Skip to content

fix(docker): Add BUILDPLATFORM to config-ui builder stage and update node version#8845

Open
lrf-nitro wants to merge 1 commit intoapache:mainfrom
AkerBP:fix-ui-docker-build-stage
Open

fix(docker): Add BUILDPLATFORM to config-ui builder stage and update node version#8845
lrf-nitro wants to merge 1 commit intoapache:mainfrom
AkerBP:fix-ui-docker-build-stage

Conversation

@lrf-nitro
Copy link
Copy Markdown
Contributor

⚠️ Pre Checklist

Please complete ALL items in this checklist, and remove before submitting

  • I have read through the Contributing Documentation.
  • I have added relevant tests.
  • I have added relevant documentation.
  • I will add labels to the PR, such as pr-type/bug-fix, pr-type/feature-development, etc.

Summary

  • Adds --platform=$BUILDPLATFORM to the config-ui Dockerfile base image specifier so that the Node builder runs natively on the build host (e.g. arm64 on Apple Silicon) rather than under x64 emulation. This avoids the esbuild Go runtime crash (lfstack.push invalid packing) that occurs when Go binaries compiled for x64 run under Rosetta 2 / QEMU in Rancher Desktop. Only the compiled static assets are copied to the final nginx image, so the builder platform has no effect on the runtime image architecture.
  • Updates the builder base image Node version from v18 (which reached EOL in April 2025) to the current LTS version (v22)

Does this close any open issues?

No

Screenshots

N/a

Other Information

N/a

…node version

- 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
@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. component/config-ui This issue or PR relates to config-ui devops Something about CI/CD (devops) pr-type/bug-fix This PR fixes a bug labels Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/config-ui This issue or PR relates to config-ui devops Something about CI/CD (devops) pr-type/bug-fix This PR fixes a bug size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant