Make entrypoint.sh the entrypoint.

Eventhou it is the ENTRYPOINT, it will just work
as if it was the CMD because it exec all arguments.
This commit is contained in:
Werner Beroux 2015-07-08 14:45:55 +02:00
parent 2f140fae43
commit 0082d0d961
2 changed files with 4 additions and 3 deletions

View File

@ -21,4 +21,5 @@ USER ngrok
EXPOSE 4040 EXPOSE 4040
CMD ["/entrypoint.sh"] ENTRYPOINT ["/entrypoint.sh"]
CMD ["/bin/ngrok"]

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh -e
if [ "$1" = "/bin/sh" ]; then if [ "$1" = "/bin/sh" ]; then
shift shift
@ -55,4 +55,4 @@ case "$1" in
*) ARGS="$PROTOCOL $ARGS -log stdout $* $FWD" ;; *) ARGS="$PROTOCOL $ARGS -log stdout $* $FWD" ;;
esac esac
exec /bin/ngrok $ARGS exec "$@"