Updating PATH environment variable permanently in Docker container

前端 未结 4 1631
北荒
北荒 2020-12-12 23:41

I tried adding to the PATH in the files ~/.profile and /etc/profile as follow.

PATH = $PATH:/required/path
         


        
4条回答
  •  天涯浪人
    2020-12-13 00:13

    Put in your Dockerfile a line ENV PATH xxx see an example in this Dockerfile https://gist.github.com/deepak/5933685

提交回复
热议问题