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.

13 lines
433 B

  1. FROM node:10.6-alpine
  2. RUN mkdir /app
  3. RUN chown node:node /app
  4. WORKDIR /app
  5. run apk add --no-cache python2 g++ make git curl
  6. RUN yarn global add Haraka express
  7. USER node
  8. RUN haraka -i /app
  9. RUN echo webmailer >> /app/config/plugins
  10. RUN echo "listen=[::0]:8080" >> /app/config/http.ini
  11. RUN echo "listen=[::0]:2525" >> /app/config/smtp.ini
  12. COPY testing/testTemplate.js /app/plugins/webmailer/templates/testTemplate.js
  13. CMD haraka -c /app