Update .dockerignore to exclude additional files and modify Makefile for improved shell command execution

This commit is contained in:
Krisztián Szabolcsi 2026-01-10 18:54:36 +01:00
parent 5a88e356e0
commit 2fa67b5250
2 changed files with 6 additions and 6 deletions

View File

@ -1 +1,3 @@
config.json
src/config.json
src/node_modules
src/package-lock.json

View File

@ -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"