GreedyBear icon indicating copy to clipboard operation
GreedyBear copied to clipboard

Dockerfile uses the floating tag for node

Open regulartim opened this issue 2 months ago • 9 comments

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.

regulartim avatar Oct 01 '26 14:10 regulartim

Hi @regulartim, can I take this one?

Prasad8830 avatar Oct 01 '26 16:10 Prasad8830

Hey @Prasad8830 ! You're already assigned to #1661 , so let's close that first.

regulartim avatar Oct 01 '26 16:10 regulartim

ok sure, I will first finish assigned issue

Prasad8830 avatar Oct 01 '26 16:10 Prasad8830

i am working on this one @regulartim .

Demiserular avatar Oct 01 '26 17:10 Demiserular

OK

regulartim avatar Oct 01 '26 17:10 regulartim

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 ?

Demiserular avatar Oct 01 '26 17:10 Demiserular

Yes. You can also bump alpine itself. I think I saw that 3.24 is out.

regulartim avatar Oct 01 '26 17:10 regulartim

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 ??

Demiserular avatar Oct 01 '26 17:10 Demiserular

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.

regulartim avatar Oct 01 '26 17:10 regulartim