mirror of
https://github.com/bluenviron/mediamtx
synced 2025-02-22 14:36:54 +00:00
* fix: improve unsafe path handling Paths containing spaces or dashes were being interpreted as separate options, since the path handling lacked double quotes. This fixes all unsafe instances of "PWD" and "HOME", along with all other unsafe paths in the scripts. * readme: explicitly mount the configuration as read-only This clearly shows users that the MediaMTX container will not modify the configuration file.
11 lines
258 B
Makefile
11 lines
258 B
Makefile
define DOCKERFILE_FORMAT
|
|
FROM $(BASE_IMAGE)
|
|
RUN go install mvdan.cc/gofumpt@v0.5.0
|
|
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 ."
|