diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e006a11 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,23 @@ +# Copyright (c) 2021 Oracle and/or its affiliates. +# +# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. +# +# This is the Dockerfile for Oracle ZFS Storage Appliance CSI Driver +# + +FROM container-registry.oracle.com/os/oraclelinux:7-slim +LABEL maintainers="Oracle" +LABEL description="Oracle ZFS Storage Appliance CSI Driver for Kubernetes" + +ARG var_proxy +ENV http_proxy=$var_proxy +ENV https_proxy=$var_proxy + +# Add util-linux to get a new version of losetup. +RUN yum -y install iscsi-initiator-utils nfs-utils e2fsprogs xfsprogs && yum clean all + +ENV http_proxy "" +ENV https_proxy "" + +COPY ./bin/zfssa-csi-driver /zfssa-csi-driver +ENTRYPOINT ["/zfssa-csi-driver"]