🐳 Adds the possibility to overwrite the CMD

This commit is contained in:
Christian Mäder 2017-08-30 11:09:56 +02:00
parent ab0c255040
commit d58930ab67
No known key found for this signature in database
GPG key ID: 92FFD0A711F196BB
2 changed files with 7 additions and 2 deletions

View file

@ -23,5 +23,8 @@ END
# copy static files
./manage.py collectstatic --no-input
# start unicorn
gunicorn --log-level debug --debug -c /opt/netbox/gunicorn_config.py netbox.wsgi
echo "✅ Initialisation is done. Launching CMD:"
echo "exec ${@}"
# launch whatever is passed by docker via RUN
exec ${@}