优化build.sh编译脚本

This commit is contained in:
iyuu.cn
2020-05-12 18:34:50 +08:00
parent 6ecf4f1d54
commit 290bfbe5c9
2 changed files with 7 additions and 3 deletions

View File

@ -1,6 +1,9 @@
#!/bin/sh
#wget -c https://gitee.com/ledc/IYUUAutoReseed/repository/archive/master.zip -O IYUUAutoReseed.zip
#unzip -o ./IYUUAutoReseed.zip -d /root
#rm ./IYUUAutoReseed.zip
cd /root
wget -c https://gitee.com/ledc/IYUUAutoReseed/repository/archive/master.zip -O IYUUAutoReseed.zip
unzip -o ./IYUUAutoReseed.zip -d /root
rm ./IYUUAutoReseed.zip
cd /root/IYUUAutoReseed/docker
chmod +x ./*.sh
docker build -t iyuu:latest .
docker run -it -v /root/IYUUAutoReseed:/var/www -p 8510:9000 --network bridge --name IYUUAutoReseed --restart always -d iyuu:latest