Skip to content

Commit

Permalink
Fixed NFS example Dockerfile to include a valid Entrypoint.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
elsonrodriguez committed Apr 28, 2015
1 parent 45d8c97 commit 621c86d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions examples/nfs/exporter/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ FROM fedora:21
MAINTAINER Jan Safranek <[email protected]>
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"]

0 comments on commit 621c86d

Please sign in to comment.