c59566d458
✨ docker 支持自定义安装 pypi 依赖 (#79) * 有些插件额外需要一些未安装的依赖,支持用户自己定义`requirements2.txt`,创建容器时即自动安装好,这样更新镜像或重建容器不影响这些插件的使用。
9 lines
208 B
Plaintext
Executable File
9 lines
208 B
Plaintext
Executable File
#!/usr/bin/with-contenv bash
|
|
|
|
perl -i -pe "{
|
|
s|^dir /var/lib/redis|dir /pagermaid/workdir|;
|
|
s|^save \d+ 1|save 60 1|;
|
|
}" /etc/redis/redis.conf
|
|
|
|
cd /pagermaid/workdir
|
|
redis-server /etc/redis/redis.conf |