1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-06-29 00:41:33 +02:00
Files
Mailu/optional/fetchmail/Dockerfile

23 lines
434 B
Docker
Raw Normal View History

2021-09-01 18:56:44 +02:00
ARG DISTRO=alpine:3.14.2
FROM $DISTRO
2021-11-04 14:22:12 +01:00
ENV TZ Etc/UTC
# python3 shared with most images
RUN apk add --no-cache \
2021-11-02 11:19:42 +01:00
python3 py3-pip bash tzdata \
&& pip3 install --upgrade pip
# Image specific layers under this line
RUN apk add --no-cache fetchmail ca-certificates openssl \
&& pip3 install requests
2016-04-28 20:07:38 +02:00
2021-11-09 14:10:04 +00:00
RUN mkdir -p /data
RUN chown fetchmail:fetchmail /data
2016-04-28 20:07:38 +02:00
COPY fetchmail.py /fetchmail.py
USER fetchmail
2016-04-28 20:07:38 +02:00
CMD ["/fetchmail.py"]