mediamtx/scripts/format.mk
2022-08-23 09:42:25 +02:00

11 lines
256 B
Makefile

define DOCKERFILE_FORMAT
FROM $(BASE_IMAGE)
RUN go install mvdan.cc/gofumpt@v0.3.1
endef
export DOCKERFILE_FORMAT
format:
echo "$$DOCKERFILE_FORMAT" | docker build -q . -f - -t temp
docker run --rm -it -v $(PWD):/s -w /s temp \
sh -c "gofumpt -l -w ."