mirror of https://github.com/nmasse-itix/liche.git
1 changed files with 6 additions and 4 deletions
@ -1,8 +1,10 @@ |
|||||
FROM golang |
FROM golang:1.12 |
||||
COPY . /go/src/github.com/raviqqe/liche |
COPY . /src |
||||
RUN CGO_ENABLED=0 GOOS=linux go get /go/src/github.com/raviqqe/liche |
ENV CGO_ENABLED=0 GO111MODULE=on GOOS=linux |
||||
|
WORKDIR /src |
||||
|
RUN go build -o liche |
||||
|
|
||||
FROM alpine |
FROM alpine |
||||
RUN apk --no-cache add ca-certificates |
RUN apk --no-cache add ca-certificates |
||||
COPY --from=0 /go/bin/liche /liche |
COPY --from=0 /src/liche /liche |
||||
ENTRYPOINT ["/liche"] |
ENTRYPOINT ["/liche"] |
||||
|
|||||
Loading…
Reference in new issue