2023-05-18 11:59:31 +00:00
|
|
|
FROM docker.io/library/alpine:3.18.0
|
2021-08-31 16:47:34 +00:00
|
|
|
|
|
|
|
RUN echo "http://dl-3.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/repositories
|
2022-01-21 22:30:45 +00:00
|
|
|
RUN apk upgrade
|
2021-08-31 16:47:34 +00:00
|
|
|
RUN apk add --update perl perl-lockfile-simple perl-dbi perl-dbd-pg perl-dbd-mysql fetchmail
|
|
|
|
RUN mkdir --parents /run/fetchmail
|
|
|
|
|
|
|
|
COPY --chown=fetchmail:fetchmail fetchmail.pl /usr/local/bin/fetchmail.pl
|
|
|
|
|
|
|
|
USER fetchmail
|
|
|
|
|
|
|
|
ENTRYPOINT [ "/usr/bin/perl" ]
|
|
|
|
CMD [ "/usr/local/bin/fetchmail.pl" ]
|