confd-env/Dockerfile

19 lines
458 B
Docker

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 /