Skip to content

Commit

Permalink
Update Dockerfile to use go mod files
Browse files Browse the repository at this point in the history
  • Loading branch information
khernyo committed Jul 8, 2020
1 parent 514349a commit b9be29a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b9be29a

Please sign in to comment.