From 0af7bcc6de51776e358339cd761bb60402f34db3 Mon Sep 17 00:00:00 2001 From: EmmaChalz <46445613+Mkhgkk@users.noreply.github.com> Date: Sat, 11 Jan 2025 01:16:47 +0900 Subject: [PATCH] improve compatibility of make binaries (#3761) --- scripts/binaries.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/binaries.mk b/scripts/binaries.mk index 19ecb4f2..8f806e37 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/"