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

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. FROM node:10-slim
  2. LABEL version=1.0.0
  3. LABEL description="Haraka-Wildduck Docker Mail Server"
  4. LABEL maintainer="ale@hatthieves.es"
  5. RUN apt update && apt -y install git python make g++ libcap2-bin && apt clean
  6. RUN git clone https://github.com/nodemailer/wildduck /wildduck
  7. RUN git clone https://github.com/zone-eu/zone-mta-template /wildduck-mta
  8. RUN git clone https://github.com/haraka/Haraka /haraka
  9. COPY ./haraka/config /haraka/config
  10. COPY ./wildduck/config /wildduck/config
  11. COPY ./wildduck-mta/config /wildduck-mta/config
  12. RUN chown node.node -R /wildduck /wildduck-mta /haraka
  13. RUN setcap 'cap_net_bind_service=+ep' /usr/local/bin/node
  14. USER node
  15. ENV DOMAIN=$DOMAIN REVERSE_DNS=$REVERSE_DNS
  16. WORKDIR /wildduck
  17. RUN npm i --production
  18. WORKDIR /wildduck-mta
  19. RUN npm i --production
  20. RUN npm i -S zonemta-wildduck
  21. RUN npm i -S zonemta-limiter
  22. WORKDIR /haraka
  23. RUN npm i
  24. RUN npm i -S haraka-plugin-wildduck -S