This repository has been archived by the owner on Feb 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11.2k
我用docker build 构建完了之后,然后在run 为什么还要加配置参数 --env,程序不自动读取.env配置文件? #1256
Labels
Comments
程序会自动读取.env配置文件,但是每次修改.env配置文件时会重新构建镜像,而通过--env修改环境变量能避免重新构建镜像 |
我修改了.env 我直接 在docker build 然后 run的时候不加 --env能行吗? |
可以 |
你用的哪个版本?在有几个版本中 |
谢谢大佬,明白了 |
This issue is stale because it has been open for 10 days with no activity. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
请问大佬们,我用docker build 构建完了之后,然后在run 为什么还要加配置参数 --env,程序不自动读取.env配置文件吗?.env里不是有配置吗,为啥还要加上 --env OPENAI_API_KEY= 不明白,求大佬解惑。。
The text was updated successfully, but these errors were encountered: