Update .dockerignore to exclude additional files and modify Makefile for improved shell command execution
This commit is contained in:
parent
5a88e356e0
commit
2fa67b5250
@ -1 +1,3 @@
|
||||
config.json
|
||||
src/config.json
|
||||
src/node_modules
|
||||
src/package-lock.json
|
||||
8
Makefile
8
Makefile
@ -37,11 +37,9 @@ stop:
|
||||
@sudo docker stop $(NAME)
|
||||
|
||||
shell:
|
||||
docker run --rm -it \
|
||||
--name $(CONTAINER)-shell \
|
||||
-v "$(shell pwd):$(WORKDIR)" \
|
||||
-w $(WORKDIR) \
|
||||
$(IMAGE) /bin/sh
|
||||
sudo docker run --rm -it \
|
||||
--name $(NAME)-shell \
|
||||
$(NAME):local /bin/sh
|
||||
|
||||
help:
|
||||
@printf "Usage:\n make build Build local docker image ($(IMAGE))\n make run Run image mounting project into $(WORKDIR) (port $(PORT))\n make stop Stop running container\n make shell Start a shell in a container with project mounted\n\nOverride variables: IMAGE, CONTAINER, WORKDIR, PORT, DOCKER_BUILD_ARGS, DOCKER_RUN_ARGS\n"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user