docker: add shell command to entrypoint

This commit is contained in:
Glenn Y. Rolland 2021-12-06 11:47:53 +01:00
parent 95e3391634
commit 3bb91fa2b0
2 changed files with 6 additions and 4 deletions

View file

@ -233,6 +233,3 @@ docker-push:
docker-pull: docker-pull:
env docker pull glenux/teaching-boilerplate:latest env docker pull glenux/teaching-boilerplate:latest
shell:
$(SHELL) -c "exec $${SHELL}"

View file

@ -21,4 +21,9 @@ if [ -d "_build" ]; then
chown -R "$EXT_UID:$EXT_GID" _build chown -R "$EXT_UID:$EXT_GID" _build
fi fi
exec gosu "$EXT_UID:$EXT_GID" make "$@" if [ "$1" = "shell" ]; then
exec bash
else
exec gosu "$EXT_UID:$EXT_GID" make "$@"
fi