From 621c86defba70606f7b52686d6c35ec9e59d4b5e Mon Sep 17 00:00:00 2001 From: elsonrodriguez Date: Mon, 27 Apr 2015 20:39:44 -0700 Subject: [PATCH] Fixed NFS example Dockerfile to include a valid Entrypoint. While running through this example the Dockerfile wouldn't build, upon closer inspection the entrypoint was not being copied into the container, and it was not executable. --- examples/nfs/exporter/Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/examples/nfs/exporter/Dockerfile b/examples/nfs/exporter/Dockerfile index 3cad57d8579c8..68755ed44b125 100644 --- a/examples/nfs/exporter/Dockerfile +++ b/examples/nfs/exporter/Dockerfile @@ -2,6 +2,10 @@ FROM fedora:21 MAINTAINER Jan Safranek EXPOSE 2049/tcp -RUN yum -y install nfs-utils && yum clean all && run_nfs /usr/local/bin/run_nfs +RUN yum -y install nfs-utils && yum clean all -ENTRYPOINT ["/usr/local/bin/run_nfs"] \ No newline at end of file +ADD run_nfs /usr/local/bin/ + +RUN chmod +x /usr/local/bin/run_nfs + +ENTRYPOINT ["/usr/local/bin/run_nfs"]