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.

15 lines
570 B

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 && apt clean
  6. RUN git clone https://github.com/nodemailer/wildduck-webmail /webmail
  7. WORKDIR /webmail
  8. RUN git checkout 5c54625a8b192823184ba7f5da41f3414e76db94
  9. COPY ./config /webmail/config
  10. COPY ./views /webmail/views
  11. RUN chown node.node -R /webmail
  12. USER node
  13. ARG DOMAIN
  14. RUN npm i
  15. RUN npm run bowerdeps
  16. RUN find /webmail/config /webmail/views -type f -exec sed -i "s/{{DOMAIN}}/$DOMAIN/g" {} +