confd-env/Dockerfile

18 lines
567 B
Docker
Raw Normal View History

2016-06-28 12:19:59 +00:00
FROM smebberson/alpine-base:latest
ENV CONFD_VERSION=v0.12.0-alpha3
2016-06-28 12:19:59 +00:00
RUN apk add --no-cache go git gcc musl-dev && \
git clone https://github.com/kelseyhightower/confd.git /src/confd && \
cd /src/confd && \
2016-10-11 09:21:21 +00:00
git checkout -q --detach "$CONFD_VERSION" && \
2016-06-28 12:19:59 +00:00
cd /src/confd/src/github.com/kelseyhightower/confd && \
GOPATH=/src/confd/vendor:/src/confd go build -a -installsuffix cgo -ldflags '-extld ld -extldflags -static' -x . && \
mv ./confd /bin/ && \
chmod +x /bin/confd && \
apk del go git gcc musl-dev && \
rm -rf /src
2016-06-23 10:31:56 +00:00
ADD /root /
2016-06-28 12:19:59 +00:00