From 89240a4fab3d4db5cb75e74f0527e7b9ef78444b Mon Sep 17 00:00:00 2001 From: Joshua Tauberer Date: Thu, 1 May 2014 22:18:45 -0400 Subject: [PATCH] docker: do ADD container/docker later on so that the Dockerfile can be updated and still reuse a cached image after the major setup steps are done --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 91ab56b3..463bf9e3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,14 +22,14 @@ RUN apt-get install -q -y openssh-server RUN sed -i /etc/ssh/sshd_config -e "s/^#PasswordAuthentication yes/PasswordAuthentication no/g" # Add this repo into the image so we have the configuration scripts. -ADD conf /usr/local/mailinabox/conf -ADD containers/docker /usr/local/mailinabox/containers/docker ADD scripts /usr/local/mailinabox/scripts +ADD conf /usr/local/mailinabox/conf ADD tools /usr/local/mailinabox/tools # Start the configuration. RUN cd /usr/local/mailinabox; scripts/start.sh -# Launch configuration. +# How the instance is launched. +ADD containers/docker /usr/local/mailinabox/containers/docker CMD bash /usr/local/mailinabox/containers/docker/start_services.sh EXPOSE 22 25 53 443 587 993