Skip to content

Commit

Permalink
Add OpenShift Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jsafrane committed Oct 18, 2018
1 parent 4ca8246 commit b3d3a37
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile.openshift
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM openshift/origin-release:golang-1.10
COPY . /go/src/github.com/kubernetes-csi/external-attacher/
RUN cd /go/src/github.com/kubernetes-csi/external-attacher/ && \
go build ./cmd/csi-attacher

FROM centos:7

COPY --from=0 /go/src/github.com/kubernetes-csi/external-attacher/csi-attacher /usr/bin/

RUN useradd csi-attacher
USER csi-attacher

CMD ["/usr/bin/csi-attacher"]

0 comments on commit b3d3a37

Please sign in to comment.