From 1af211f1b4551601e2ae19bcc6a408bcd15971da Mon Sep 17 00:00:00 2001 From: Edward Viaene Date: Sat, 8 Sep 2018 13:45:06 +0000 Subject: [PATCH] dockerfile fixes --- Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 56de4e6..2ef2841 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,12 @@ WORKDIR /go/src/github.com/in4it/ecs-upgrade/ COPY . . -RUN curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh && dep ensure +RUN apk add -u -t build-tools curl git && \ + curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh && \ + dep ensure && \ + apk del build-tools && \ + rm -rf /var/cache/apk/* + RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o ecs-upgrade *.go #