FROM openshift/origin-release:golang-1.10
COPY . /go/src/k8s.io/cloud-provider-openstack
RUN cd /go/src/k8s.io/cloud-provider-openstack && \
    go build -o manila-provisioner cmd/manila-provisioner/main.go

FROM registry.svc.ci.openshift.org/openshift/origin-v4.0:base

COPY --from=0 /go/src/k8s.io/cloud-provider-openstack/manila-provisioner /usr/bin/

ENTRYPOINT ["/usr/bin/manila-provisioner"]
