forked from kubernetes-sigs/ibm-powervs-block-csi-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
21 lines (17 loc) · 1.11 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#FROM golang:1.15-buster AS builder
#WORKDIR /go/src/sigs.k8s.io/ibm-powervs-block-csi-driver
#COPY . .
#RUN make
FROM --platform=linux/ppc64le k8s.gcr.io/build-image/debian-base:v2.1.3 AS debian-base
RUN clean-install ca-certificates e2fsprogs mount udev util-linux xfsprogs
RUN clean-install bash multipath-tools sg3-utils
# COPY --from=builder /go/src/sigs.k8s.io/ibm-powervs-block-csi-driver/bin/ibm-powervs-block-csi-driver /bin/ibm-powervs-block-csi-driver
COPY ./bin/ibm-powervs-block-csi-driver /bin/ibm-powervs-block-csi-driver
ENTRYPOINT ["/bin/ibm-powervs-block-csi-driver"]
FROM --platform=linux/ppc64le registry.access.redhat.com/ubi8/ubi:8.5 AS rhel-base
RUN yum --disableplugin=subscription-manager -y install httpd php \
&& yum --disableplugin=subscription-manager clean all
RUN clean-install ca-certificates e2fsprogs mount udev util-linux xfsprogs
# COPY --from=builder /go/src/sigs.k8s.io/ibm-powervs-block-csi-driver/bin/ibm-powervs-block-csi-driver /bin/ibm-powervs-block-csi-driver
COPY ./bin/ibm-powervs-block-csi-driver /bin/ibm-powervs-block-csi-driver
ENTRYPOINT ["/bin/ibm-powervs-block-csi-driver"]