From 52e5c4df0a310fd679bc379e53f8bb1efa4c167f Mon Sep 17 00:00:00 2001 From: sparklyballs Date: Wed, 2 Nov 2016 16:33:34 +0000 Subject: [PATCH] switch to using go 1.7, smaller end product --- Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 584cc87..41f6190 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,8 +17,12 @@ ARG SYNC_BUILD="$SYNC_SRC/src/github.com/syncthing" RUN \ apk add --no-cache --virtual=build-dependencies \ curl \ - go \ + g++ \ + gcc \ tar && \ + apk add --no-cache --virtual=build-dependencies2 \ + --repository http://nl.alpinelinux.org/alpine/edge/community \ + go && \ # compile syncthing SYNC_TAG=$(curl -sX GET "https://api.github.com/repos/syncthing/syncthing/releases/latest" \ @@ -52,7 +56,8 @@ RUN \ # cleanup apk del --purge \ - build-dependencies && \ + build-dependencies \ + build-dependencies2 && \ rm -rf \ /tmp/*