Dockerfiles and scripts to build various Docker images I rely on.
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.
 
 

28 lines
695 B

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 \
&& groupadd --gid 10000 fetchmail \
&& usermod --uid 10000 --gid 10000 --home=/srv/home --uid=10000 --gi=10000 fetchmail \
&& chown fetchmail:fetchmail /srv/home
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 port 993
# user "user@example.com" with pass "PASSWORD_HERE"
# idle
# ssl
ENTRYPOINT [ "/srv/run.sh" ]