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.
This commit is contained in:
elsonrodriguez 2015-04-27 20:39:44 -07:00
parent 45d8c97b0b
commit 621c86defb

View File

@ -2,6 +2,10 @@ FROM fedora:21
MAINTAINER Jan Safranek <jsafrane@redhat.com>
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"]
ADD run_nfs /usr/local/bin/
RUN chmod +x /usr/local/bin/run_nfs
ENTRYPOINT ["/usr/local/bin/run_nfs"]