1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-04-23 12:08:54 +02:00
Mailu/optional/fetchmail/Dockerfile

23 lines
447 B
Docker
Raw Normal View History

ARG DISTRO=alpine:3.14.5
FROM $DISTRO
ARG VERSION
2021-11-04 14:22:12 +01:00
ENV TZ Etc/UTC
LABEL version=$VERSION
# 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
2016-04-28 20:07:38 +02:00
COPY fetchmail.py /fetchmail.py
CMD ["/fetchmail.py"]
RUN echo $VERSION >> /version