From 9ba0175b690d643f4c72c7fad90bf65f399fa87a Mon Sep 17 00:00:00 2001 From: Denis Zheleztsov Date: Mon, 13 Feb 2017 18:38:07 +0300 Subject: [PATCH] simplify build --- Dockerfile.builder | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Dockerfile.builder b/Dockerfile.builder index 5b36623..75ad903 100644 --- a/Dockerfile.builder +++ b/Dockerfile.builder @@ -13,12 +13,13 @@ RUN apk update && apk add git go ENV GOPATH /usr -# Get sources -RUN cd / && git clone https://gitea.difrex.ru/Umbrella/lessmore.git - # Get go depends -RUN cd /lessmore && go get -t -v ./... || true -RUN cd /lessmore && go get gitea.difrex.ru/Umbrella/fetcher -RUN cd /lessmore && go get gitea.difrex.ru/Umbrella/lessmore +RUN go get gitea.difrex.ru/Umbrella/fetcher +RUN go get gitea.difrex.ru/Umbrella/lessmore +RUN go install gitea.difrex.ru/Umbrella/lessmore -ENTRYPOINT cd /lessmore && go build && mv lessmore /out/ +# Check build result +RUN echo -ne "Check build result\n===============" +RUN /usr/bin/lessmore --help || [[ $? -eq 2 ]] + +ENTRYPOINT mv /usr/bin/lessmore /out/