且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在 Docker 容器中永久更新 PATH 环境变量

更新时间:2022-11-06 18:34:29

如果要在 Dockerfile 中包含 /new/path,请添加以下行:

If you want to include a /new/path in the Dockerfile, adding the line:

ENV PATH "$PATH:/new/path"

Dockerfile 中应该可以工作.

in Dockerfile should work.