基于 https://github.com/AboutCXJ/SillyGirlDockerDeploy 改造,参考 https://hub.docker.com/r/mzzsfy/sillygirl 的 docker-entrypoint.sh
镜像已修改为直接下载cdle编译好的sillyGirl,不再执行容器内编译,并更换原始镜像为golang:bullseye且内置[Node.js LTS]、[npm]、[pm2],所以镜像体积有所增大
docker run \
-d \
--name sillygirl \
--hostname sillygirl \
--restart always \
-e GOPROXY=https://mirrors.aliyun.com/goproxy/,direct \
-e GITHUBPROXY=https://ghproxy.com/ \
-e APKPROXY=mirrors.ustc.edu.cn \
-e SETS_CONF=https://raw.githubusercontent.com/LeanFly/SillyGirlDockerDeploy/main/sets.conf \
-v <sillygirl>/data:/etc/sillyGirl \
virson/sillygirl:latest
/etc/sillyGirl目录默认生成数据卷,也可以使用-v <you path>:/etc/sillyGirl挂载出来(推荐)GOPATH=/etc/sillyGirl/.goCache,build时下载的文件会缓存到该目录,如果不需要请设置环境变量GOPATH=/godisable_link_replies=true时关闭软链接/etc/sillyGirl/replies > /sillyGirl/develop/repliesdisable_clean_workspace=true时关闭清理拉取代码前清空/sillyGirl目录GOPROXY=https://mirrors.aliyun.com/goproxy/,direct、 GITHUBPROXY=https://ghproxy.com/和APKPROXY=mirrors.ustc.edu.cn \ ,如果需要关闭请手动设置环境变量GOPROXY= ,GITHUBPROXY=和APKPROXY=SETS_CONF=https://raw.githubusercontent.com/LeanFly/SillyGirlDockerDeploy/main/sets.conf,如果需要请手动设置SETS_CONF=Content type
Image
Digest
Size
409.6 MB
Last updated
over 4 years ago
docker pull virson/sillygirl