make: clean up container after linting

Currently `make lint` creates a new container each time it runs. We can
automatically delete these containers once linting is done by using the
--rm flag.
This commit is contained in:
Matt Morehouse 2023-04-18 15:20:14 -05:00
parent 517f8ed842
commit 526075be57
No known key found for this signature in database
GPG Key ID: CC8ECA224831C982

View File

@ -55,7 +55,7 @@ ifneq ($(workers),)
LINT_WORKERS = --concurrency=$(workers)
endif
DOCKER_TOOLS = docker run -v $$(pwd):/build lnd-tools
DOCKER_TOOLS = docker run --rm -v $$(pwd):/build lnd-tools
GREEN := "\\033[0;32m"
NC := "\\033[0m"