Skip to content

Commit

Permalink
Merge pull request #164 from andyzhangx/change-base-image
Browse files Browse the repository at this point in the history
fix: change base image to debian
  • Loading branch information
andyzhangx authored Feb 21, 2021
2 parents b7ef7d0 + 525c6bc commit ac023bf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM centos:latest
FROM k8s.gcr.io/build-image/debian-base-amd64:v2.1.3

# Copy nfsplugin from build _output directory
COPY bin/nfsplugin /nfsplugin

RUN yum -y install nfs-utils epel-release jq && yum clean all
# this is a workaround to install nfs-common & nfs-kernel-server and don't quit with error
# https://github.com/kubernetes-sigs/blob-csi-driver/issues/214#issuecomment-781602430
RUN apt update && apt install ca-certificates mount nfs-common nfs-kernel-server -y || true

ENTRYPOINT ["/nfsplugin"]

0 comments on commit ac023bf

Please sign in to comment.