diff --git a/Dockerfile b/Dockerfile index 89deb07..4dfc74e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,18 @@ +FROM golang:1.13.14-alpine AS builder + +RUN apk --no-cache add \ + git \ + make + +RUN mkdir -p $GOPATH/src/github.com/kelseyhightower +RUN git clone https://github.com/kelseyhightower/confd.git $GOPATH/src/github.com/kelseyhightower/confd + +WORKDIR $GOPATH/src/github.com/kelseyhightower/confd +RUN git checkout v0.16.0 +RUN make + FROM thallian/alpine-s6:latest +COPY --from=builder /go/src/github.com/kelseyhightower/confd/bin/confd /bin/confd + ADD /rootfs / diff --git a/rootfs/bin/confd b/rootfs/bin/confd deleted file mode 100755 index 38a47cd..0000000 Binary files a/rootfs/bin/confd and /dev/null differ