2021-05-25 21:19:37 +00:00
|
|
|
ARG REPO_LOCATION
|
|
|
|
# ARG BASE_VERSION
|
|
|
|
|
|
|
|
FROM ${REPO_LOCATION}minideb
|
|
|
|
|
|
|
|
RUN install_packages ca-certificates fetchmail procmail inotify-tools mpack
|
|
|
|
RUN mkdir /srv/home \
|
|
|
|
&& ln -s /mnt/fetchmailrc /srv/home/.fetchmailrc \
|
2021-05-26 00:07:35 +00:00
|
|
|
&& groupadd --gid 10000 fetchmail \
|
2021-05-25 23:38:36 +00:00
|
|
|
&& usermod --uid 10000 --gid 10000 --home=/srv/home --uid=10000 --gi=10000 fetchmail \
|
|
|
|
&& chown fetchmail:fetchmail /srv/home
|
2021-05-25 21:19:37 +00:00
|
|
|
|
|
|
|
ENV HOME /srv/home
|
|
|
|
|
|
|
|
COPY ./procmail.conf /srv/procmail.conf
|
|
|
|
COPY ./run.sh /srv/run.sh
|
|
|
|
|
|
|
|
VOLUME /mnt/fetchmailrc
|
|
|
|
VOLUME /mnt/output
|
|
|
|
|
2021-05-25 21:21:13 +00:00
|
|
|
# Example fetchmailrc file:
|
|
|
|
#
|
2021-05-26 21:17:40 +00:00
|
|
|
# poll starbeamrainbowlabs.com protocol IMAP port 993
|
2021-05-25 21:21:13 +00:00
|
|
|
# user "user@example.com" with pass "PASSWORD_HERE"
|
|
|
|
# idle
|
|
|
|
# ssl
|
|
|
|
|
2021-05-25 21:19:37 +00:00
|
|
|
ENTRYPOINT [ "/srv/run.sh" ]
|