Haraka-Wildduck Docker Mail Server with NodeJS
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.
 
 
 
 
 

24 lines
900 B

FROM node:10-slim
LABEL version=1.0.0
LABEL description="Haraka-Wildduck Docker Mail Server"
LABEL maintainer="ale@hatthieves.es"
RUN apt update && apt -y install git python make g++ libcap2-bin && apt clean
RUN git clone https://github.com/nodemailer/wildduck /wildduck
RUN git clone https://github.com/zone-eu/zone-mta-template /wildduck-mta
RUN git clone https://github.com/haraka/Haraka /haraka
COPY ./haraka/config /haraka/config
COPY ./wildduck/config /wildduck/config
COPY ./wildduck-mta/config /wildduck-mta/config
RUN chown node.node -R /wildduck /wildduck-mta /haraka
RUN setcap 'cap_net_bind_service=+ep' /usr/local/bin/node
USER node
ENV DOMAIN=$DOMAIN REVERSE_DNS=$REVERSE_DNS
WORKDIR /wildduck
RUN npm i --production
WORKDIR /wildduck-mta
RUN npm i --production
RUN npm i -S zonemta-wildduck
RUN npm i -S zonemta-limiter
WORKDIR /haraka
RUN npm i
RUN npm i -S haraka-plugin-wildduck -S