mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-11-26 02:57:04 +00:00
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:
parent
16c0a9d342
commit
89240a4fab
@ -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"
|
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 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 scripts /usr/local/mailinabox/scripts
|
||||||
|
ADD conf /usr/local/mailinabox/conf
|
||||||
ADD tools /usr/local/mailinabox/tools
|
ADD tools /usr/local/mailinabox/tools
|
||||||
|
|
||||||
# Start the configuration.
|
# Start the configuration.
|
||||||
RUN cd /usr/local/mailinabox; scripts/start.sh
|
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
|
CMD bash /usr/local/mailinabox/containers/docker/start_services.sh
|
||||||
EXPOSE 22 25 53 443 587 993
|
EXPOSE 22 25 53 443 587 993
|
||||||
|
Loading…
Reference in New Issue
Block a user