mediamtx/scripts/format.mk

11 lines
256 B
Makefile
Raw Normal View History

2022-08-23 07:42:25 +00:00
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 ."