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

This commit is contained in:
Joshua Tauberer 2014-05-01 22:18:45 -04:00
parent 16c0a9d342
commit 89240a4fab
1 changed files with 3 additions and 3 deletions

View File

@ -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