2022-03-30 09:08:28 +00:00
|
|
|
ARG DISTRO=alpine:3.14.5
|
2019-08-21 12:24:30 -04:00
|
|
|
FROM $DISTRO
|
2021-11-17 20:00:04 +00:00
|
|
|
ARG VERSION
|
2019-01-27 11:48:52 +01:00
|
|
|
|
2021-11-04 14:22:12 +01:00
|
|
|
ENV TZ Etc/UTC
|
|
|
|
|
2021-11-17 20:00:04 +00:00
|
|
|
LABEL version=$VERSION
|
|
|
|
|
2018-10-31 19:17:23 +02:00
|
|
|
# python3 shared with most images
|
|
|
|
RUN apk add --no-cache \
|
2021-11-02 11:19:42 +01:00
|
|
|
python3 py3-pip bash tzdata \
|
2018-10-31 19:17:23 +02:00
|
|
|
&& pip3 install --upgrade pip
|
2019-01-27 11:48:52 +01: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
|
|
|
|
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
|
2019-01-27 11:48:52 +01:00
|
|
|
|
2021-11-18 17:21:56 +00:00
|
|
|
CMD ["/fetchmail.py"]
|
|
|
|
RUN echo $VERSION >> /version
|