From d07d25b10dd8a977dd1e2874c44edfc20a1b290e Mon Sep 17 00:00:00 2001 From: Mkhgkk Date: Thu, 12 Sep 2024 12:19:57 +0900 Subject: [PATCH] fix Dockerfile ENV format and docker run volume mount in binaries.mk --- scripts/binaries.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/binaries.mk b/scripts/binaries.mk index 19ecb4f2ceb..9c3663b77b2 100644 --- a/scripts/binaries.mk +++ b/scripts/binaries.mk @@ -13,7 +13,7 @@ WORKDIR /s COPY go.mod go.sum ./ RUN go mod download COPY . ./ -ENV CGO_ENABLED 0 +ENV CGO_ENABLED=0 RUN rm -rf tmp binaries RUN mkdir tmp binaries RUN cp mediamtx.yml LICENSE tmp/ @@ -69,5 +69,5 @@ export DOCKERFILE_BINARIES binaries: echo "$$DOCKERFILE_BINARIES" | DOCKER_BUILDKIT=1 docker build . -f - \ -t temp - docker run --rm -v "$(PWD):/out" \ + docker run --rm -v $(shell pwd):/out \ temp sh -c "rm -rf /out/binaries && cp -r /s/binaries /out/"