diff --git a/Dockerfile-k8s-agent b/Dockerfile-k8s-agent index 593b40981..38e012157 100755 --- a/Dockerfile-k8s-agent +++ b/Dockerfile-k8s-agent @@ -6,15 +6,15 @@ FROM golang:1.12.7-alpine3.10 AS builder # We need so that dep can fetch it's dependencies -# RUN apk --no-cache add git -# RUN go get github.com/golang/dep/cmd/dep +RUN apk --no-cache add git +RUN go get github.com/golang/dep/cmd/dep # Directory in workspace WORKDIR "/go/src/github.com/Peripli/service-manager" # Copy dep files only and ensure dependencies are satisfied -# COPY Gopkg.lock Gopkg.toml ./ -# RUN dep ensure -vendor-only -v +COPY Gopkg.lock Gopkg.toml ./ +RUN dep ensure --vendor-only -v # Copy and build source code COPY . ./