armada/entrypoint.sh
Wil Reichert add0e2eb99 Dockerfile cleanup
Layer cnosolidate & remove unnecessary build packages
Shrinks image from 865MB to 370MB
Exec gunicorn in entrypoint so <ctrl> c works properly
Run as unpriviledged user instead of root
2017-08-03 11:24:16 -05:00

17 lines
222 B
Bash
Executable File

#!/bin/bash
CMD="armada"
PORT="8000"
set -e
if [ "$1" = 'server' ]; then
exec gunicorn server:api -b :$PORT --chdir armada/api
fi
if [ "$1" = 'tiller' ] || [ "$1" = 'apply' ]; then
exec $CMD "$@"
fi
exec "$@"