You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This discussion was converted from issue #1669 on March 05, 2026 04:37.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
docker镜像优化建议:
docker运行应该以轻便,开箱即用为主,但是这个项目提供的docker镜像仍旧需要先进行手动创建配置文件才能运行,所以我这里给出一个优化的建议
比如将以下脚本命名为docker-init.sh,在镜像构建流程中COPY进镜像,并将Dockerfile最后的
CMD ["./CLIProxyAPI"]改为CMD ["./docker-init.sh"],通过将脚本作为入口命令即可做到开箱即用其它优化建议
这个是和我个人使用习惯有点相关的建议
比如host,port,管理面板之类的配置,能否通过环境变量传入镜像,来避免仍旧需要修改配置文件重新运行
(比如假如我上面的建议被采用了,这时使用默认配置启动容器后,发现管理面板需要再次修改配置文件才能进入,还是有点不够开箱即用)
可以修改项目,让环境变量的优先级高于配置文件,或者在入口脚本处读取环境变量修改配置文件来实现
另外能否添加一个配置项,就是如果配置了后台页面,直接访问项目时是否自动路由到后台
Beta Was this translation helpful? Give feedback.
All reactions