diff --git a/.dockerignore b/.dockerignore index 0cffcb3..eb1704b 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1 +1,3 @@ -config.json \ No newline at end of file +src/config.json +src/node_modules +src/package-lock.json \ No newline at end of file diff --git a/Makefile b/Makefile index ea2f7d2..d7643f9 100644 --- a/Makefile +++ b/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"