|
|
@ -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 |
|
|
|