27 lines
618 B
Docker
27 lines
618 B
Docker
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 \
|
|
&& mkdir /tmp/maildir \
|
|
&& useradd --system --home=/srv/home --uid=10000 --gid=10000 fetchmail
|
|
|
|
ENV HOME /srv/home
|
|
|
|
COPY ./procmail.conf /srv/procmail.conf
|
|
COPY ./run.sh /srv/run.sh
|
|
|
|
VOLUME /mnt/fetchmailrc
|
|
VOLUME /mnt/output
|
|
|
|
# Example fetchmailrc file:
|
|
#
|
|
# poll starbeamrainbowlabs.com protocol IMAP
|
|
# user "user@example.com" with pass "PASSWORD_HERE"
|
|
# idle
|
|
# ssl
|
|
|
|
ENTRYPOINT [ "/srv/run.sh" ]
|