message: sourcing dotenv script on docker exec bash or sh
diff: @@ -24,5 +24,20 @@ ENV HOME=/home
  COPY amazeeio-entrypoints.sh /usr/sbin/amazeeio-entrypoints
  ENTRYPOINT ["/usr/sbin/amazeeio-entrypoints"]
  +RUN chmod g=u /etc/passwd
  +
  COPY entrypoints /amazeeio/entrypoints
  +# During a `docker exec <containername> bash` or `docker exec <containername> sh` the ENTRYPOINT is not executed (by design of docker)
  +# This means our dotenv script is never called an environment variables are not exposed, this is highly confusing for developers as
  +# the environment variables are avialable for the main command.
  +# With the next lines we make sure our dotenv script is sourced.
  +
  +# When Bash is invoked via `sh` it behaves like the old Bourne Shell and sources a file that is given in `ENV`
  +ENV ENV=/amazeeio/entrypoints/50-dotenv.sh
  +
  +# When Bash is invoked as non-interactive (like `bash -c command`) it sources a file that is given in `BASH_ENV`
  +ENV BASH_ENV=/amazeeio/entrypoints/50-dotenv.sh
  +
  +# When Bash is invoked as interactive it sources the file it finds in `/$HOME/.bashrc`
  +COPY entrypoints/50-dotenv.sh /$HOME/.bashrc
  \ No newline at end of file
  