find /__e -type f -executable -name 'node' -not -path '*_alpine/*' -print0 | xargs -0 -n 1 -- sh -xc 'docker run --rm --volume "$1" "docker.io/library/node:$(docker run --rm --volume "$1" docker.io/library/debian:stable-slim "$2" -e "console.log(process.versions.node)")-alpine" -e "fs.copyFileSync(process.execPath, process.argv[1])" -- "$2"' -- "$(docker inspect "$(hostname)" --format '{{ range.Mounts }}{{ if eq .Destination "/__e" }}{{ .Source }}:{{ .Destination }}{{ end }}{{ end }}')"
0 commit comments