Dockerfile 448 Bytes
Newer Older
1
ARG DISTRO=alpine:3.14.5
2
FROM $DISTRO
3
ARG VERSION
4

DjVinnii's avatar
DjVinnii committed
5
6
ENV TZ Etc/UTC

7
8
LABEL version=$VERSION

9
10
# python3 shared with most images
RUN apk add --no-cache \
DjVinnii's avatar
DjVinnii committed
11
    python3 py3-pip bash tzdata \
12
  && pip3 install --upgrade pip
13

14
# Image specific layers under this line
15
RUN apk add --no-cache fetchmail ca-certificates openssl \
16
 && pip3 install requests
kaiyou's avatar
kaiyou committed
17

Dimitri Huisman's avatar
Dimitri Huisman committed
18
19
RUN mkdir -p /data

kaiyou's avatar
kaiyou committed
20
COPY fetchmail.py /fetchmail.py
21

Dimitri Huisman's avatar
Dimitri Huisman committed
22
CMD ["/fetchmail.py"]
Florent Daigniere's avatar
Florent Daigniere committed
23
RUN echo $VERSION >> /version