ms-runner/starter/create_rootfs.sh
2025-01-07 21:56:21 +05:00

17 lines
368 B
Bash
Executable file

#!/bin/bash
if [[ $(whoami) != root ]]
then
echo -e "\e[38;5;1mrun as root please\e[0m"
exit
fi
NAME=minrootfs
SCRIPT_DIR=$(dirname -- "$(readlink -f "${BASH_SOURCE}")")
rm -rf $SCRIPT_DIR/$NAME
$SCRIPT_DIR/alpine-make-rootfs/alpine-make-rootfs --packages 'python3 gcc libc-dev' $SCRIPT_DIR/$NAME
#chown -R nobody:nogroup $SCRIPT_DIR/$NAME
#rm -r ../$NAME