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
This commit is contained in:
Morris Jobke 2015-01-22 13:51:56 +01:00
parent c6e9be3fd0
commit 0ef72f2271

View File

@ -4,7 +4,6 @@ MAINTAINER David Personette <dperson@dperson.com>
ENV DEBIAN_FRONTEND noninteractive ENV DEBIAN_FRONTEND noninteractive
# Install samba # Install samba
COPY samba.sh /usr/bin/
RUN apt-get update -qq && \ RUN apt-get update -qq && \
apt-get install -qqy --no-install-recommends samba && \ apt-get install -qqy --no-install-recommends samba && \
apt-get clean && \ apt-get clean && \
@ -20,6 +19,7 @@ RUN apt-get update -qq && \
echo ' force user = smbuser' >> /etc/samba/smb.conf && \ echo ' force user = smbuser' >> /etc/samba/smb.conf && \
echo ' force group = users' >> /etc/samba/smb.conf && \ echo ' force group = users' >> /etc/samba/smb.conf && \
echo '' >> /etc/samba/smb.conf echo '' >> /etc/samba/smb.conf
COPY samba.sh /usr/bin/
VOLUME ["/etc/samba"] VOLUME ["/etc/samba"]