cleanup gcc after installing config-supervisor and skipped rclone installation due to a bug (#36)
diff --git a/Dockerfile b/Dockerfile
index fc01601..bc03031 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -190,7 +190,7 @@
RUN echo " ... installing api-gateway-config-supervisor ... " \
&& echo "http://dl-4.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
&& apk update \
- && apk add gcc make git go \
+ && apk add gcc make git 'go<1.7' \
&& mkdir -p /tmp/api-gateway \
&& curl -k -L https://github.com/adobe-apiplatform/api-gateway-config-supervisor/archive/${CONFIG_SUPERVISOR_VERSION}.tar.gz -o /tmp/api-gateway/api-gateway-config-supervisor-${CONFIG_SUPERVISOR_VERSION}.tar.gz \
&& cd /tmp/api-gateway \
@@ -206,9 +206,9 @@
&& GOPATH=/tmp/go/vendor:/tmp/go-src CGO_ENABLED=0 GOOS=linux /usr/lib/go/bin/godep go build -ldflags "-s" -a -installsuffix cgo -o api-gateway-config-supervisor ./ \
&& mv /tmp/go/api-gateway-config-supervisor /usr/local/sbin/ \
- && echo "installing rclone sync ... " \
- && go get github.com/ncw/rclone \
- && mv /usr/lib/go/bin/rclone /usr/local/sbin/ \
+ && echo "installing rclone sync ... skipped due to https://github.com/ncw/rclone/issues/663 ... " \
+ # && go get github.com/ncw/rclone \
+ # && mv /usr/lib/go/bin/rclone /usr/local/sbin/ \
&& echo " cleaning up ... " \
&& rm -rf /usr/lib/go/bin/src \
@@ -216,7 +216,7 @@
&& rm -rf /tmp/go-src \
&& rm -rf /usr/lib/go/bin/pkg/ \
&& rm -rf /usr/lib/go/bin/godep \
- && apk del make git go \
+ && apk del make git go gcc \
&& rm -rf /var/cache/apk/*
RUN echo " ... installing aws-cli ..." \