Skip to content

Commit

Permalink
Merge pull request kubernetes-csi#2 from jsafrane/add-openshift-docke…
Browse files Browse the repository at this point in the history
…rfile

Add OpenShift Dockerfile
  • Loading branch information
jsafrane committed Oct 18, 2018
2 parents 9c88c00 + b3d3a37 commit 69db1bd
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 69db1bd

Please sign in to comment.