haraka-plugin-webmailer/Dockerfile

13 lines
433 B
Docker

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