docker: add shell command to entrypoint
This commit is contained in:
parent
effbefc00a
commit
61a5f735ab
2 changed files with 6 additions and 4 deletions
3
Makefile
3
Makefile
|
@ -233,6 +233,3 @@ docker-push:
|
|||
|
||||
docker-pull:
|
||||
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
|
||||
fi
|
||||
|
||||
if [ "$1" = "shell" ]; then
|
||||
exec bash
|
||||
else
|
||||
exec gosu "$EXT_UID:$EXT_GID" make "$@"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue