PagerMaid-Modify/s6/etc/cont-init.d/20-update
nevinen c59566d458
docker supports custom installation of pypi dependencies (#79)
 docker 支持自定义安装 pypi 依赖 (#79)

* 有些插件额外需要一些未安装的依赖,支持用户自己定义`requirements2.txt`,创建容器时即自动安装好,这样更新镜像或重建容器不影响这些插件的使用。
2021-05-28 20:31:00 +08:00

12 lines
251 B
Plaintext
Executable File

#!/usr/bin/with-contenv bash
cd /pagermaid/workdir
git remote set-url origin https://github.com/Xtao-Labs/PagerMaid-Modify.git
git pull
pip install -r requirements.txt
if [ -s requirements2.txt ]; then
pip install -r requirements2.txt
fi
exit 0