Skip to content
This repository has been archived by the owner on Mar 13, 2019. It is now read-only.

Add support for bash entrypoint #93

Open
tatemz opened this issue Jul 18, 2016 · 0 comments
Open

Add support for bash entrypoint #93

tatemz opened this issue Jul 18, 2016 · 0 comments

Comments

@tatemz
Copy link

tatemz commented Jul 18, 2016

Most docker containers have the ability support entering into bash by adding an entrypoint script.

Something like this will do:

entrypoint.sh

if [ "$1" == composer ]; then
  exec "composer --ansi ${@:2}"
else
  exec "$@"
fi

And in your Dockerfile

ADD entrypoint.sh /entrypoint.sh
CMD ["composer"]
ENTRYPOINT ["/entrypoint.sh"]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant