Skip to content

Commit

Permalink
Add --rm to docker command to cleanup containers
Browse files Browse the repository at this point in the history
  • Loading branch information
sha1sum committed Dec 17, 2023
1 parent 79a54c0 commit 791f98b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ DOCKER_CMD := docker run -it -v $(PWD):/opt/repo --platform linux/x86_64 $(DOCKE

# Dockers targets
build_docker_image:
docker build -t $(DOCKER_IMAGE) -f Dockerfile --progress=plain .
docker build -t $(DOCKER_IMAGE) -f Dockerfile --progress=plain --rm .

push_docker_image: build_docker_image
docker push $(DOCKER_IMAGE):latest
Expand Down

0 comments on commit 791f98b

Please sign in to comment.