First fetchmail implementation

This commit is contained in:
Pierre Jaury
2016-04-28 20:07:38 +02:00
parent c56a51f7b7
commit 30ecbf81cd
14 changed files with 246 additions and 11 deletions

13
fetchmail/Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
FROM python:alpine
RUN apk add --update \
fetchmail \
&& rm -rf /var/cache/apk/*
COPY fetchmail.py /fetchmail.py
RUN mkdir /var/spool/mail \
&& chown mail: /var/spool/mail
USER mail
CMD ["/fetchmail.py"]