Commit 89240a4f authored by Joshua Tauberer's avatar Joshua Tauberer

docker: do ADD container/docker later on so that the Dockerfile can be updated...

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
parent 16c0a9d3
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment