2017-06-14 17:09:24 +00:00
|
|
|
FROM golang:1.8.1-alpine
|
|
|
|
COPY . /go/src/github.com/rusenask/keel
|
|
|
|
WORKDIR /go/src/github.com/rusenask/keel
|
|
|
|
RUN apk add --no-cache git && go get
|
|
|
|
RUN CGO_ENABLED=0 GOOS=linux go build -a -tags netgo -ldflags -'w' -o keel .
|
|
|
|
|
2017-06-10 11:23:07 +00:00
|
|
|
FROM alpine:latest
|
|
|
|
RUN apk --no-cache add ca-certificates
|
2017-06-14 17:09:24 +00:00
|
|
|
COPY --from=0 /go/src/github.com/rusenask/keel/keel /bin/keel
|
2017-06-10 11:23:07 +00:00
|
|
|
ENTRYPOINT ["/bin/keel"]
|
|
|
|
|
|
|
|
EXPOSE 9300
|