🐳 Adds the possibility to overwrite the CMD
This commit is contained in:
parent
ab0c255040
commit
d58930ab67
|
@ -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"]
|
||||
|
|
|
@ -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 ${@}
|
||||
|
|
Loading…
Reference in New Issue