diff --git a/Dockerfile b/Dockerfile index c39b18f..9d880ae 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,8 +5,7 @@ ENV EMAIL=${EMAIL:-test@email.tld} ENV USE_LETSENCRYPT=${USE_LETSENCRYPT:-false} RUN 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 supervisor certbot cron && \ - rm -rf /var/lib/apt/lists/* && \ + apt-get update && apt-get upgrade -y && apt-get -t jessie-backports install -y supervisor certbot cron git && \ mkdir /var/log/supervisord && \ mkdir /var/run/supervisord && \ groupadd -r haraka && \ @@ -33,11 +32,13 @@ ENV PATH=$PATH:/home/node/.npm-global/bin RUN npm -g install Haraka \ && npm -g install haraka-net-utils \ && npm -g install haraka-plugin-rspamd \ - && npm -g install haraka/haraka-plugin-auth-ldap \ + && npm -g install https://github.com/haraka/haraka-plugin-auth-ldap.git \ && npm -g install haraka-plugin-rcpt-ldap \ && rm -f /home/node/.npm-global/lib/node_modules/Haraka/plugins/auth/auth_ldap.js \ && rm -f /home/node/.npm-global/lib/node_modules/Haraka/plugins/rcpt_tp.ldap.js +RUN apt-get -y remove git && apt-get -y auto-remove && \ + rm -rf /var/lib/apt/lists/* USER root