Fix some ordering issues

master
Carlos Mogas da Silva 6 years ago
parent 42954bfd25
commit 5dd6cad695
  1. 10
      Dockerfile

@ -5,9 +5,9 @@ ENV EMAIL=${EMAIL:-test@email.tld}
ENV USE_LETSENCRYPT=${USE_LETSENCRYPT:-false} ENV USE_LETSENCRYPT=${USE_LETSENCRYPT:-false}
COPY haraka.sh /haraka.sh COPY haraka.sh /haraka.sh
COPY certbot-renew.sh /etc/cron.daily/certbot-renew.sh
RUN chmod +x /haraka.sh /etc/cron.daily/certbot-renew.sh && \ RUN echo "deb http://ftp.debian.org/debian jessie-backports main" >> /etc/apt/sources.list && \
echo "deb http://ftp.debian.org/debian jessie-backports main" >> /etc/apt/sources.list && \
apt-get update && apt-get upgrade -y && apt-get -t jessie-backports install -y --no-install-recommends supervisor certbot cron git && \ apt-get update && apt-get upgrade -y && apt-get -t jessie-backports install -y --no-install-recommends supervisor certbot cron git && \
mkdir /var/log/supervisord && \ mkdir /var/log/supervisord && \
mkdir /var/run/supervisord && \ mkdir /var/run/supervisord && \
@ -18,11 +18,11 @@ RUN chmod +x /haraka.sh /etc/cron.daily/certbot-renew.sh && \
--gid haraka \ --gid haraka \
-r \ -r \
-m \ -m \
haraka \ haraka && \
&& chown -R haraka:haraka /haraka chown -R haraka:haraka /haraka && \
chmod +x /haraka.sh /etc/cron.daily/certbot-renew.sh
COPY supervisord.conf /etc/supervisor/supervisord.conf COPY supervisord.conf /etc/supervisor/supervisord.conf
COPY certbot-renew.sh /etc/cron.daily/certbot-renew.sh
# Port 80 is used for LetsEncrypt # Port 80 is used for LetsEncrypt
EXPOSE 25 80 587 EXPOSE 25 80 587

Loading…
Cancel
Save