Builds started breaking with node:23-alpine very recently; had to drop back to node:22-alpine
Environment
- Platform: Macbook M1 ARM
- Docker Version:
Client:
Version: 27.3.1
API version: 1.47
Go version: go1.22.7
Git commit: ce12230
Built: Fri Sep 20 11:38:18 2024
OS/Arch: darwin/arm64
Context: desktop-linux
Server: Docker Desktop 4.36.0 (175267)
Engine:
Version: 27.3.1
API version: 1.47 (minimum version 1.24)
Go version: go1.22.7
Git commit: 41ca978
Built: Fri Sep 20 11:41:19 2024
OS/Arch: linux/arm64
Experimental: false
containerd:
Version: 1.7.21
GitCommit: 472731909fa34bd7bc9c087e4c27943f9835f111
runc:
Version: 1.1.13
GitCommit: v1.1.13-0-g58aa920
docker-init:
Version: 0.19.0
GitCommit: de40ad0
- Node.js Version: What is in 23-alpine
- Image Tag: 23-alpine
Expected Behavior
I've been using a Dockerfile pinned with node:23-alpine for a few weeks now and things were working fine.
Just the other day, however, my builds started failing with no changes on my side. I did find this new commit, which I think is the issue: https://github.com/nodejs/docker-node/commit/bd5c1ad707a39db0f333a502d9bc47e1a5e0358d
Current Behavior
I now run into this when trying to compile in the container. It actually build fine locally on my Mac directly with the same version of node/npm.
I only run into this in the 23-alpine container at the latest commit. Things were working fine with 23-alpine on ENV NODE_VERSION 23.1.0
43.08 Failed to compile.
43.08
43.08 Unexpected end of JSON input
43.08
43.08
Possible Solution
I was able to get past this dropping back to 22-alpine but that seems like I might be missing some features/fixes.
Steps to Reproduce
Additional Information
Would love any advice here.
I'm also experiencing the exact same issues with 23.2.0. Falling back to 23.1.0 works.
Alpine node builds seem broken across various versions at the moment, i dont know what's happened, very confusing