From 754aa5ad6d0abae1e19c817672074e4c7a5ec726 Mon Sep 17 00:00:00 2001 From: Joseph Herlant Date: Fri, 15 Dec 2017 15:15:01 -0800 Subject: [PATCH] Fix docker build issue and move layers for better caching --- Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8147dcf..b0fa380 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,14 @@ FROM golang:alpine -WORKDIR /go/src/awsRetagger -COPY glide.yaml *.go /go/src/awsRetagger/ - RUN apk update \ && apk add --no-cache git \ && go get github.com/Masterminds/glide \ - && go install github.com/Masterminds/glide \ + && go install github.com/Masterminds/glide + +WORKDIR /go/src/github.com/VEVO/awsRetagger +COPY . ./ + +RUN rm -f glide.lock \ && glide install --strip-vendor RUN go-wrapper install