mirror of https://github.com/nmasse-itix/liche.git
3 changed files with 43 additions and 53 deletions
@ -1,10 +1,9 @@ |
|||
FROM golang:latest |
|||
RUN CGO_ENABLED=0 GOOS=linux go get -u github.com/raviqqe/liche |
|||
FROM golang |
|||
COPY . /go/src/github.com/raviqqe/liche |
|||
WORKDIR /go/src/github.com/raviqqe/liche |
|||
RUN CGO_ENABLED=0 GOOS=linux go get . |
|||
|
|||
FROM alpine:latest |
|||
FROM alpine |
|||
RUN apk --no-cache add ca-certificates |
|||
WORKDIR /root/ |
|||
COPY --from=0 /go/bin/liche /go/bin/liche |
|||
ENV PATH "/go/bin:$PATH" |
|||
RUN liche --help |
|||
CMD liche |
|||
COPY --from=0 /go/bin/liche /liche |
|||
ENTRYPOINT ["/liche"] |
|||
|
|||
@ -1,7 +0,0 @@ |
|||
FROM alpine:latest |
|||
RUN apk --no-cache add ca-certificates |
|||
WORKDIR /root/ |
|||
ADD bin/liche /go/bin/liche |
|||
ENV PATH "/go/bin:$PATH" |
|||
RUN liche --help |
|||
CMD liche |
|||
Loading…
Reference in new issue