Dockerfile uses the floating tag for node
Currently we are using the node:lts-alpine3.22 image for our frontend build. The current node LTS version is 24, which is the same as in our CI. But when node bumps the LTS version, Docker builds will move to it without anyone changing a file. So I'd suggest to pin the version in the Dockerfile.
Hi @regulartim, can I take this one?
Hey @Prasad8830 ! You're already assigned to #1661 , so let's close that first.
ok sure, I will first finish assigned issue
i am working on this one @regulartim .
OK
well for now can we update the frontend build image from node:lts-alpine3.22 to node:24-alpine3.22 so it remains aligned with CI and doesn’t automatically switch to a future LTS major version ?
Yes. You can also bump alpine itself. I think I saw that 3.24 is out.
for long term, we should pin the exact Node image version by digest and configure Renovate/Dependabot to open update PRs. Using a shared .node-version file for CI will also keep the Docker and CI versions aligned while ensuring updates are explicit and reviewable ??
Good idea in principle, but I don't think we need it. It's alright if we manually bump the version in two places every few years.