File tree 1 file changed +1
-1
lines changed
1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change 7
7
run : |
8
8
if test -d /__e && grep -q '^ID=alpine$' /etc/os-release; then
9
9
apk add --no-cache -- docker-cli libstdc++
10
- docker run --rm -i --entrypoint /usr/sbin/chroot --volume /:/hostfs "$(docker inspect "$(hostname)" --format "{{ .Image }}")" /hostfs /bin/bash -xes "$(docker inspect "$(hostname)" --format '{{ range.Mounts }}{{ if eq .Destination "/__e" }}{{ .Destination }}{{ end }}{{ end }}')" <<'EOF'
10
+ docker run --rm --interactive --entrypoint /usr/sbin/chroot --volume /:/hostfs "$(docker inspect "$(hostname)" --format "{{ .Image }}")" /hostfs /bin/bash -xes "$(docker inspect "$(hostname)" --format '{{ range.Mounts }}{{ if eq .Destination "/__e" }}{{ .Source }}{{ end }}{{ end }}')" <<'EOF'
11
11
find "$1" -type f -executable -name 'node' -not -path '*_alpine/*' -print0 | xargs -0 -n 1 -- sh -xc 'docker run --rm --volume /:/hostfs "docker.io/library/node:$("$1" -e "console.log(process.versions.node)")-alpine" -e "fs.copyFileSync(process.execPath, process.argv[1])" -- "/hostfs/$1"' --
12
12
EOF
13
13
sed -i -e 's/^ID=alpine$/ID=linux/' /etc/os-release
You can’t perform that action at this time.
0 commit comments