From 2fa67b525015f945ac2f8ba56249ef3b22f181b8 Mon Sep 17 00:00:00 2001 From: kriszcode Date: Sat, 10 Jan 2026 18:54:36 +0100 Subject: [PATCH] Update .dockerignore to exclude additional files and modify Makefile for improved shell command execution --- .dockerignore | 4 +++- Makefile | 8 +++----- 2 files changed, 6 insertions(+), 6 deletions(-) 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"