From e250c1c405e5ef62919229ba4f563dc20b7e23e8 Mon Sep 17 00:00:00 2001 From: Damanpreet Singh Date: Tue, 24 Oct 2023 22:26:00 +0530 Subject: [PATCH] Remove docker container after make protos finishes (#1964) --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 261c884f..1cff4115 100644 --- a/Makefile +++ b/Makefile @@ -52,10 +52,10 @@ run-debug: CGO_ENABLED=0 go run . git file://. --json --debug protos: - docker run -u "$(shell id -u)" -v "$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))":/pwd "${PROTOS_IMAGE}" bash -c "cd /pwd; /pwd/scripts/gen_proto.sh" + docker run --rm -u "$(shell id -u)" -v "$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))":/pwd "${PROTOS_IMAGE}" bash -c "cd /pwd; /pwd/scripts/gen_proto.sh" protos-windows: - docker run -v "$(shell cygpath -w $(shell pwd))":/pwd "${PROTOS_IMAGE}" bash -c "cd /pwd; ./scripts/gen_proto.sh" + docker run --rm -v "$(shell cygpath -w $(shell pwd))":/pwd "${PROTOS_IMAGE}" bash -c "cd /pwd; ./scripts/gen_proto.sh" release-protos-image: docker buildx build --push --platform=linux/amd64,linux/arm64 \