confd-env/Dockerfile
2017-01-10 11:19:20 +01:00

23 lines
502 B
Docker

FROM quay.io/thallian/alpine-s6
ENV VERSION=v0.12.0-alpha3
RUN apk add --no-cache go gcc musl-dev libressl tar git
RUN mkdir -p /src/confd
RUN wget -qO- https://github.com/kelseyhightower/confd/archive/$VERSION.tar.gz | tar -xz -C /src/confd --strip 1
WORKDIR /src/confd
ENV GOPATH /src/confd/vendor:/src/confd
RUN go get -d
RUN go build -a -installsuffix cgo -x .
RUN mv ./confd /bin/
RUN chmod +x /bin/confd
RUN apk del go gcc musl-dev libressl tar git
RUN rm -rf /src
WORKDIR /
ADD /rootfs /