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
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
There is currently no compiled Dockerfile. It is mounted directly to the program directory and then started.
Subsequent versions will consider mounting the cache directory of pip install for persistence to prevent continued downloading on the second startup.
1Panel Version
v1.10.21
Please describe your needs or suggestions for improvements
目前在创建python环境时需要填写启动命令,系统建议的是“请填写完整启动命令,例如:pip install -r requirements.txt && python manage.py runserver 0.0.0.0:5000”,看其目的是安装扩展包与启动python程序一起执行。但是如此填写的话每次修改代码后重启都会执行一次pip install ,将会导致重启服务非常慢。
Please describe the solution you suggest
目前应是填写完创建的输入框后后端程序会根据填写项自动生成dockerfile进行镜像编译运行。
建议增加一栏输入框:“选择requirements.txt”让用户进行选择,然后生成的dockerfile预计是下面的样子:
如此后只要没有修改过requirements.txt则不会重新安装,第一阶段会在docker中进行缓存,那么修改自己的python程序后进行重启则会快很多
Additional Information
No response
The text was updated successfully, but these errors were encountered: