Skip to content

Commit

Permalink
Merge pull request #464 from banzaicloud/docker-fix
Browse files Browse the repository at this point in the history
Update Dockerfile to use go mod files
  • Loading branch information
Laci21 authored Jul 8, 2020
2 parents 514349a + b9be29a commit 77dc5cb
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
@@ -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
2 changes: 1 addition & 1 deletion Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 77dc5cb

Please sign in to comment.