docker: add shell command to entrypoint
This commit is contained in:
parent
95e3391634
commit
3bb91fa2b0
2 changed files with 6 additions and 4 deletions
3
Makefile
3
Makefile
|
@ -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}"
|
|
||||||
|
|
|
@ -21,4 +21,9 @@ if [ -d "_build" ]; then
|
||||||
chown -R "$EXT_UID:$EXT_GID" _build
|
chown -R "$EXT_UID:$EXT_GID" _build
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$1" = "shell" ]; then
|
||||||
|
exec bash
|
||||||
|
else
|
||||||
exec gosu "$EXT_UID:$EXT_GID" make "$@"
|
exec gosu "$EXT_UID:$EXT_GID" make "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue