add-build-container

This commit is contained in:
shenmo 2023-07-27 16:18:07 +08:00
parent 77279777b0
commit 07885b9077

View File

@ -0,0 +1,10 @@
#!/bin/bash
if [ `which debootstrap` = "" ];then
echo "Need to install debootstrap!"
exit
fi
cd "`dirname $0`"
sudo debootstrap bookworm ./bookworm-env https://mirrors.ustc.edu.cn/debian/
tar -cJvf bookworm-env.tar.xz bookworm-env/*
sudo rm -rf bookworm-env