From dad3b4118e40f24f83072e0877846a0c270c3680 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Tue, 28 Jun 2016 14:19:59 +0200 Subject: [PATCH] use alpine 3.4 --- Dockerfile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7e25050..7fa0126 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,17 @@ -FROM smebberson/alpine-confd:latest +FROM smebberson/alpine-base:latest + +ENV CONFD_VERSION=0.11.0 + +RUN apk add --no-cache go git gcc musl-dev && \ + git clone https://github.com/kelseyhightower/confd.git /src/confd && \ + cd /src/confd && \ + git checkout -q --detach "v$CONFD_VERSION" && \ + 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 ADD /root / +