start.sh 441 B

12345678910111213
  1. #!/bin/bash
  2. # 建立文件夹
  3. mkdir -p /home/pywork/dr_py && cd /home/pywork/dr_py
  4. # 下载仓库包
  5. wget https://ghproxy.net/https://github.com/hjdhnx/dr_py/archive/refs/heads/main.zip -O dr_py.zip
  6. # 解压
  7. unzip dr_py.zip
  8. # 移动文件到当前目录
  9. mv dr*/* ./
  10. # 清理临时文件
  11. rm *.zip
  12. # 启动容器
  13. # docker run -it -p 5705:5705 -p 9001:9001 -v /home/pywork/dr_py:/root/sd/pywork/dr_py --restart=always --name drpy -d hjdhnx/drpy