24 lines
457 B
Bash
24 lines
457 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -x
|
||
|
set -e
|
||
|
|
||
|
docker run -d --name busybox_extractor -v ${pwd}:/installer debian:12 sleep 3600
|
||
|
|
||
|
docker exec -it busybox_extractor apt update
|
||
|
|
||
|
docker exec -it busybox_extractor apt upgrade -y
|
||
|
|
||
|
docker exec -it busybox_extractor apt install -y busybox-static
|
||
|
|
||
|
docker exec -it busybox_extractor cp -vf /usr/bin/busybox /installer/
|
||
|
|
||
|
docker stop busybox_extractor
|
||
|
|
||
|
docker rm busybox_extractor
|
||
|
|
||
|
cp -vf busybox /usr/bin/busybox
|
||
|
|
||
|
set +e
|
||
|
set +x
|