Skip to content

Commit

Permalink
fix Dockerfile ENV format and docker run volume mount in binaries.mk
Browse files Browse the repository at this point in the history
  • Loading branch information
Mkhgkk authored and aler9 committed Jan 10, 2025
1 parent 38f3662 commit d07d25b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/binaries.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down Expand Up @@ -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/"

0 comments on commit d07d25b

Please sign in to comment.