simplify build
This commit is contained in:
parent
407261b654
commit
9ba0175b69
@ -13,12 +13,13 @@ RUN apk update && apk add git go
|
|||||||
|
|
||||||
ENV GOPATH /usr
|
ENV GOPATH /usr
|
||||||
|
|
||||||
# Get sources
|
|
||||||
RUN cd / && git clone https://gitea.difrex.ru/Umbrella/lessmore.git
|
|
||||||
|
|
||||||
# Get go depends
|
# Get go depends
|
||||||
RUN cd /lessmore && go get -t -v ./... || true
|
RUN go get gitea.difrex.ru/Umbrella/fetcher
|
||||||
RUN cd /lessmore && go get gitea.difrex.ru/Umbrella/fetcher
|
RUN go get gitea.difrex.ru/Umbrella/lessmore
|
||||||
RUN cd /lessmore && 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/
|
||||||
|
Loading…
Reference in New Issue
Block a user