You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
docker-haraka/Dockerfile

39 lines
1019 B

FROM node:latest
ENV HOSTNAME=${HOSTNAME:-haraka}
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 && \
rm -rf /var/lib/apt/lists/* && \
mkdir /var/log/supervisord && \
groupadd -r haraka && \
useradd --comment "Haraka Server User" \
--home /haraka \
--shell /bin/false \
--gid haraka \
-r \
-m \
haraka \
&& chown -R haraka:haraka /haraka
COPY cron.sh /cron.sh
COPY haraka.sh /run.sh
COPY supervisord.conf /etc/supervisor/supervisord.conf
RUN chmod +x /cron.sh /haraka.sh
# Install and Haraka and it's plugins
USER node
ENV NPM_CONFIG_PREFIX=/home/node/.npm-global
ENV PATH=$PATH:/home/node/.npm-global/bin
RUN npm -g install Haraka \
&& npm -g install haraka-plugin-rspamd
# Port 80 is used for LetsEncrypt
EXPOSE 25 80 587
VOLUME /haraka
ENTRYPOINT ["/run.sh"]