FROM docker.io/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 docker.io/thallian/alpine-s6:3.19-3.1.6.2 COPY --from=builder /go/src/github.com/kelseyhightower/confd/bin/confd /bin/confd ADD /rootfs /