2017-01-10 10:19:20 +00:00
|
|
|
FROM quay.io/thallian/alpine-s6
|
2016-06-28 12:19:59 +00:00
|
|
|
|
2016-10-11 10:18:46 +00:00
|
|
|
ENV VERSION=v0.12.0-alpha3
|
2016-06-28 12:19:59 +00:00
|
|
|
|
2017-01-10 10:19:20 +00:00
|
|
|
RUN apk add --no-cache go gcc musl-dev libressl tar git
|
2016-06-23 10:31:56 +00:00
|
|
|
|
2016-10-11 10:18:46 +00:00
|
|
|
RUN mkdir -p /src/confd
|
|
|
|
RUN wget -qO- https://github.com/kelseyhightower/confd/archive/$VERSION.tar.gz | tar -xz -C /src/confd --strip 1
|
2016-06-28 12:19:59 +00:00
|
|
|
|
2016-10-11 10:18:46 +00:00
|
|
|
WORKDIR /src/confd
|
|
|
|
ENV GOPATH /src/confd/vendor:/src/confd
|
|
|
|
RUN go get -d
|
2017-01-10 10:19:20 +00:00
|
|
|
RUN go build -a -installsuffix cgo -x .
|
2016-10-11 10:18:46 +00:00
|
|
|
RUN mv ./confd /bin/
|
|
|
|
RUN chmod +x /bin/confd
|
|
|
|
|
2017-01-10 10:19:20 +00:00
|
|
|
RUN apk del go gcc musl-dev libressl tar git
|
2016-10-11 10:18:46 +00:00
|
|
|
RUN rm -rf /src
|
|
|
|
|
|
|
|
WORKDIR /
|
|
|
|
|
|
|
|
ADD /rootfs /
|