2020-06-16 08:15:13 +02:00
|
|
|
ARG DISTRO=alpine:3.12
|
2019-08-21 18:24:30 +02:00
|
|
|
FROM $DISTRO
|
2019-01-27 12:48:52 +02:00
|
|
|
|
2018-10-31 19:17:23 +02:00
|
|
|
# python3 shared with most images
|
|
|
|
RUN apk add --no-cache \
|
2019-02-06 22:01:02 +02:00
|
|
|
python3 py3-pip bash \
|
2018-10-31 19:17:23 +02:00
|
|
|
&& pip3 install --upgrade pip
|
2019-01-27 12:48:52 +02:00
|
|
|
|
2018-10-31 19:17:23 +02:00
|
|
|
# Image specific layers under this line
|
2020-06-16 08:15:13 +02:00
|
|
|
RUN apk add --no-cache fetchmail ca-certificates openssl \
|
2018-10-31 19:17:23 +02:00
|
|
|
&& pip3 install requests
|
2016-04-28 20:07:38 +02:00
|
|
|
|
|
|
|
COPY fetchmail.py /fetchmail.py
|
2019-01-27 12:48:52 +02:00
|
|
|
|
2018-09-27 15:52:08 +02:00
|
|
|
USER fetchmail
|
2016-04-28 20:07:38 +02:00
|
|
|
|
|
|
|
CMD ["/fetchmail.py"]
|