From 51c9060aed0d2851bd4a97c879a0b40ba12c1c1e Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Fri, 16 Oct 2020 22:49:49 +0200 Subject: [PATCH] fix makefile --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d0cac340..6957b14c 100644 --- a/Makefile +++ b/Makefile @@ -65,6 +65,9 @@ COPY go.mod go.sum ./ RUN go mod download COPY . ./ RUN go build -o /out . +WORKDIR / +ARG CONFIG_RUN +RUN echo "$$CONFIG_RUN" > rtsp-simple-server.yml endef export DOCKERFILE_RUN @@ -95,11 +98,12 @@ endef export CONFIG_RUN run: - echo "$$DOCKERFILE_RUN" | docker build -q . -f - -t temp + echo "$$DOCKERFILE_RUN" | docker build -q . -f - -t temp \ + --build-arg CONFIG_RUN="$$CONFIG_RUN" docker run --rm -it \ --network=host \ temp \ - sh -c "echo '$$CONFIG_RUN' | /out stdin" + sh -c "/out" define DOCKERFILE_RELEASE FROM amd64/$(BASE_IMAGE)