From b9be29a59b1289be10716fb0be6bcaa821513740 Mon Sep 17 00:00:00 2001 From: Szabolcs Berecz Date: Wed, 8 Jul 2020 10:57:46 +0200 Subject: [PATCH] Update Dockerfile to use go mod files --- Dockerfile | 2 +- Dockerfile.dev | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6fec4d594..3ad9fa4d0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ WORKDIR /go/src/${PACKAGE} COPY pkg/ pkg/ COPY cmd/ cmd/ -COPY Makefile Gopkg.* /go/src/${PACKAGE}/ +COPY Makefile go.* /go/src/${PACKAGE}/ RUN make vendor # Build diff --git a/Dockerfile.dev b/Dockerfile.dev index 315b66a9f..d624aacbc 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -13,7 +13,7 @@ WORKDIR /go/src/${PACKAGE} COPY pkg/ pkg/ COPY cmd/ cmd/ COPY vendor/ vendor/ -COPY Makefile Gopkg.* /go/src/${PACKAGE}/ +COPY Makefile go.* /go/src/${PACKAGE}/ # Build RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o manager github.com/banzaicloud/istio-operator/cmd/manager