docker: add shell command to entrypoint

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

View file

@ -233,6 +233,3 @@ docker-push:
docker-pull:
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
fi
exec gosu "$EXT_UID:$EXT_GID" make "$@"
if [ "$1" = "shell" ]; then
exec bash
else
exec gosu "$EXT_UID:$EXT_GID" make "$@"
fi