I have a container based on Ubuntu 16.04 and installed some custom stuff into /opt/bin
.
Now I want to add /opt/bin
to $PATH
. However, no matter what I try, the path variable isn't available after the Docker container restarts.
So far I tried to add
export PATH=$PATH:/opt/bin
to /etc/profile
and /etc/profile.d/myvars.sh
.
What is the proper way to add the path?