From c64506dc7c3f8b622607fac351729d0c54e8f128 Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Mon, 28 Sep 2020 17:47:33 +0200 Subject: [PATCH] Call pkger in docker build --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2321a3e..d3f8a91 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,9 +5,9 @@ RUN git clone --depth 1 --branch v1.4.2 https://github.com/Haivision/srt && \ cd srt && ./configure --enable-apps=OFF && make install && cd .. && rm -rf srt WORKDIR /code COPY go.* ./ -RUN go mod download +RUN go mod download && go get github.com/markbates/pkger/cmd/pkger COPY . . -RUN go build -o ./out/ghostream . +RUN go generate && go build -o ./out/ghostream . # Production image FROM alpine:3.12