Created
August 28, 2014 04:49
-
-
Save lantins/06578cdce5780b935c3f to your computer and use it in GitHub Desktop.
Volume container pre-loaded with default configs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM lantins/drms-base | |
MAINTAINER Luke Antins <[email protected]> | |
# copy in example config files to initalise volume with | |
RUN rm -rf /etc/dovecot | |
COPY etc /etc/dovecot | |
# generate self signed ssl certificate | |
WORKDIR /etc/dovecot/ssl | |
RUN mkdir /etc/dovecot/ssl/certs | |
RUN mkdir /etc/dovecot/ssl/private | |
RUN sh /etc/dovecot/ssl/mkcert.sh | |
WORKDIR / | |
# make volume available to other containers | |
VOLUME /etc/dovecot | |
# clean up APT when done. | |
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment