🐳 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

@ -37,3 +37,5 @@ COPY docker/docker-entrypoint.sh /docker-entrypoint.sh
ENTRYPOINT [ "/docker-entrypoint.sh" ]
VOLUME ["/etc/netbox-nginx/"]
CMD ["gunicorn", "--log-level debug", "-c /opt/netbox/gunicorn_config.py", "netbox.wsgi"]

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 ${@}