Browse Source

updates to mailserver container

feature/startup-from-labels
Mar Alegre 5 years ago
parent
commit
f92673031a
  1. 8
      src/mailsrv/Containerfile

8
src/mailsrv/Containerfile

@ -35,11 +35,9 @@ RUN addgroup --gid ${FILESUID:?} vmail && \
# copy our custom scripts
COPY assets/bin /usr/local/bin
# copy root's crontab
COPY assets/crontab /root/
# load root's crontab
RUN crontab /root/crontab
# put restart job in system crontab
RUN echo '# restart postfix and dovecot every Monday at 3AM' >> /etc/crontab && \
echo '23 3 * * 1 root systemctl restart postfix && systemctl restart dovecot' >> /etc/crontab
###
### mkvirtual

Loading…
Cancel
Save