mirror of
https://github.com/Mailu/Mailu.git
synced 2024-12-14 10:53:30 +02:00
e8b72099a7
alpine3:12 provides fetchmail 6.4.5, so building fetchmail from alpha branch is not needed anymore (ssl wrapped mode issue fixed) since 6.4.2
18 lines
353 B
Docker
18 lines
353 B
Docker
ARG DISTRO=alpine:3.12
|
|
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"]
|