FROM docker.io/golang:1.22-alpine3.21 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 919444eb6cf721d198b2bb18581d0f0b3734d107 RUN make FROM docker.io/thallian/alpine-s6:3.21-3.2.0.2 COPY --from=builder /go/src/github.com/kelseyhightower/confd/bin/confd /bin/confd ADD /rootfs /