1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-02-11 13:25:44 +02:00
Mailu/optional/fetchmail/Dockerfile
2021-09-01 18:56:44 +02:00

18 lines
355 B
Docker

ARG DISTRO=alpine:3.14.2
FROM $DISTRO
# python3 shared with most images
RUN apk add --no-cache \
python3 py3-pip bash \
&& pip3 install --upgrade pip
# Image specific layers under this line
RUN apk add --no-cache fetchmail ca-certificates openssl \
&& pip3 install requests
COPY fetchmail.py /fetchmail.py
USER fetchmail
CMD ["/fetchmail.py"]