Skip to content

Instantly share code, notes, and snippets.

@lantins
Created August 28, 2014 04:49
Show Gist options
  • Save lantins/06578cdce5780b935c3f to your computer and use it in GitHub Desktop.
Save lantins/06578cdce5780b935c3f to your computer and use it in GitHub Desktop.
Volume container pre-loaded with default configs
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