confd-env/Dockerfile

23 lines
544 B
Text
Raw Normal View History

2016-06-28 14:19:59 +02:00
FROM smebberson/alpine-base:latest
2016-10-11 12:18:46 +02:00
ENV VERSION=v0.12.0-alpha3
2016-06-28 14:19:59 +02:00
2016-10-11 12:18:46 +02:00
RUN apk add --no-cache go gcc musl-dev openssl tar git
2016-06-23 12:31:56 +02:00
2016-10-11 12:18:46 +02: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 14:19:59 +02:00
2016-10-11 12:18:46 +02:00
WORKDIR /src/confd
ENV GOPATH /src/confd/vendor:/src/confd
RUN go get -d
RUN go build -a -installsuffix cgo -ldflags '-extld ld -extldflags -static' -x .
RUN mv ./confd /bin/
RUN chmod +x /bin/confd
RUN apk del go gcc musl-dev openssl tar git
RUN rm -rf /src
WORKDIR /
ADD /rootfs /