Skip to content

Commit 6c5cfd8

Browse files
committed
feat: Strip Yarn from 26+ images
1 parent 73b535d commit 6c5cfd8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

update.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,12 @@ function update_node_version() {
156156
sed -Ei -e "s/(debian:)name-slim/\\1${variant}/" "${dockerfile}-tmp"
157157
fi
158158

159+
# Strip out Yarn v1 from Node 26+ images https://github.com/nodejs/docker-node/issues/2407
160+
# Can be removed from the image templates once Node 24 hits EOL on 2028-04-30
161+
if [ "${nodeVersion:0:2}" -ge "26" ]; then
162+
sed -Ei -e "/ENV YARN_VERSION/,/rm -rf \/tmp\/\*/d" "${dockerfile}-tmp"
163+
fi
164+
159165
if diff -q "${dockerfile}-tmp" "${dockerfile}" > /dev/null; then
160166
echo "${dockerfile} is already up to date!"
161167
else

0 commit comments

Comments
 (0)