Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
*.swp
bin/
.DS_Store
_output
14 changes: 8 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
FROM openshift/origin-release:golang-1.10
FROM golang:1.10.3 AS build-env

COPY . /go/src/github.com/openshift/cluster-version-operator
RUN cd /go/src/github.com/openshift/cluster-version-operator && \
make
WORKDIR /go/src/github.com/openshift/cluster-version-operator
RUN ./hack/build-go.sh

FROM scratch
COPY --from=build-env /go/src/github.com/openshift/cluster-version-operator/_output/linux/amd64/cluster-version-operator /bin/cluster-version-operator

FROM centos:7
COPY --from=0 /go/src/github.com/openshift/cluster-version-operator/bin/cvo /usr/bin/
CMD /usr/bin/cvo
ENTRYPOINT ["/bin/cluster-version-operator"]
Loading