The latest alpine docker image doesn't load the /etc/profile when starting up. See example of when it starts without /etc/profile loaded and when I load it.
[13:12]~$docker run --rm -it alpine
/ # . /etc/profile
ed2318ad9ac7:/#
How can I make it load the /etc/profile automatically upon start-up?