How to get /etc/profile to run automatically in Alpine / Docker
The default shell in Alpine Linux is ash. Ash will only read the /etc/profile and ~/.profile files if it is started as a login shell sh -l. To force Ash to source the /etc/profile or any other script you want upon its invocation as a non login shell, you need to setup an environment variable …