Skip to content

Commit 6fe0cc6

Browse files
authored
fix(docker): pin base image to node:22.22.3-slim (#1346)
The floating node:22-slim tag shipped Node 22.23.0, whose http.Agent regression (nodejs/node#63989) breaks node-fetch@2 / gaxios@6 with 'Premature close' on reused keep-alive sockets. This broke C2C ID-token generation (google-auth-library 9.x) and the app to integrated-backend auth flow in production, with no code change. Pin to the last known-good patch (22.22.3) until the upstream issue is fixed or we move off node-fetch@2.
1 parent c110f35 commit 6fe0cc6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
FROM node:22-slim
1+
# Pinned to a specific patch: the floating `node:22-slim` tag shipped Node 22.23.0,
2+
# whose http.Agent regression (https://github.com/nodejs/node/issues/63989) breaks node-fetch@2/gaxios@6 with
3+
# "Premature close", taking down C2C auth. Bump deliberately after verifying the fix.
4+
FROM node:22.22.3-slim
25
ARG version=latest
36
RUN npm install -g owox@${version} && npm cache clean --force
47
ENV NODE_OPTIONS="--no-deprecation"

0 commit comments

Comments
 (0)