From 0ef72f2271bea1dde66de2f33f2ff240d5c9200e Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Thu, 22 Jan 2015 13:51:56 +0100 Subject: [PATCH] Copy samba.sh after the apt-get * apt-get calls then are cached by docker and aren't be invoked everytime you change the samba.sh --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1f057b2..53aa312 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,6 @@ MAINTAINER David Personette ENV DEBIAN_FRONTEND noninteractive # Install samba -COPY samba.sh /usr/bin/ RUN apt-get update -qq && \ apt-get install -qqy --no-install-recommends samba && \ apt-get clean && \ @@ -20,6 +19,7 @@ RUN apt-get update -qq && \ echo ' force user = smbuser' >> /etc/samba/smb.conf && \ echo ' force group = users' >> /etc/samba/smb.conf && \ echo '' >> /etc/samba/smb.conf +COPY samba.sh /usr/bin/ VOLUME ["/etc/samba"]