Skip to content

fix(frontend): pin the Node base image to 24-alpine - #126

Merged
Jumziey merged 1 commit into
mainfrom
fix/frontend-pin-node-image
Nov 14, 2026
Merged

Jumziey merged 1 commit into
mainfrom
fix/frontend-pin-node-image

Conversation

@Jumziey

@Jumziey Jumziey commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Summary

node:lts-alpine now resolves to Node 26. That image does not include yarn, so the frontend image build stops at RUN yarn install. The "Frontend build identity" step fails on all open PRs (#118–#125), also on backend-only bumps.

 # frontend/Dockerfile
-FROM node:lts-alpine AS build
+FROM node:24-alpine AS build

 # frontend/Dockerfile.dev
-FROM node:lts-alpine
+FROM node:24-alpine

Node 24 is in LTS maintenance until April 2028. Its image includes yarn 1.22.22.

Evidence

  • Before: CI run 42586083166 (build(deps-dev): bump vite from 8.3.4 to 8.3.6 in /frontend #125):
    #13 0.144 /bin/sh: yarn: not found
    ERROR: process "/bin/sh -c yarn install --frozen-lockfile" did not complete successfully: exit code: 127
    
    $ docker run --rm node:lts-alpine sh -c 'node --version; yarn --version'
    v26.13.1
    sh: yarn: not found
    
    After: bash frontend/ci/bin/test-build-version-image.sh on this branch:
    PASS: nginx.conf reports dev-abcdef123456, ignores runtime override, and returns 404 when missing
    PASS: nginx.quickstart.conf reports dev-abcdef123456, ignores runtime override, and returns 404 when missing
    PASS: required Docker build identity 'missing' rejected
    PASS: required Docker build identity 'dev' rejected
    PASS: required Docker build identity '' rejected
    PASS: required Docker build identity 'invalid' rejected
    PASS: blank Docker build identity rejected
    

Merge Danger

Door: two-way

Revert the one-line change in each file.

Blast Radius: frontend-image

Only the build stage changes. The shipped nginx stage does not change. CI tests the frontend on the runner with lts/* (Node 26), but the image builds with Node 24. Dependabot does not watch Docker images, so someone must move this pin manually.

node:lts-alpine now resolves to Node 26. That image does not include
yarn, so `RUN yarn install` failed with "yarn: not found" (exit 127).
The "Frontend build identity" CI step failed on every PR, also on PRs
that change only the backend.

Both frontend Dockerfiles now use node:24-alpine. Node 24 is in LTS
maintenance until April 2028, and its image includes yarn 1.22.22.
@Jumziey
Jumziey merged commit 7299478 into main Nov 14, 2026
3 checks passed
@Jumziey
Jumziey deleted the fix/frontend-pin-node-image branch November 14, 2026 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant