You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
926 B
Docker
33 lines
926 B
Docker
![]()
6 years ago
|
# First stage: Build
|
||
![]()
5 years ago
|
ARG DISTRO=alpine:3.10
|
||
|
FROM $DISTRO as builder
|
||
![]()
6 years ago
|
|
||
|
# build dependencies
|
||
|
RUN apk add --no-cache curl tar xz autoconf git gettext build-base openssl openssl-dev
|
||
|
|
||
![]()
5 years ago
|
RUN curl -L 'https://sourceforge.net/projects/fetchmail/files/branch_7-alpha/fetchmail-7.0.0-alpha6.tar.xz/download' | tar xJ
|
||
![]()
6 years ago
|
RUN cd fetchmail-7.0.0-alpha6 && \
|
||
![]()
5 years ago
|
sed -i -e 's/SSLv3_client_method/SSLv23_client_method/' socket.c && \
|
||
![]()
6 years ago
|
./configure --with-ssl --prefix /usr/local --disable-nls && \
|
||
|
make
|
||
|
|
||
![]()
5 years ago
|
ARG DISTRO=alpine:3.10
|
||
|
FROM $DISTRO
|
||
![]()
6 years ago
|
|
||
![]()
6 years ago
|
# python3 shared with most images
|
||
|
RUN apk add --no-cache \
|
||
![]()
6 years ago
|
python3 py3-pip bash \
|
||
![]()
6 years ago
|
&& pip3 install --upgrade pip
|
||
![]()
6 years ago
|
|
||
![]()
6 years ago
|
# Image specific layers under this line
|
||
![]()
6 years ago
|
RUN apk add --no-cache ca-certificates openssl \
|
||
![]()
6 years ago
|
&& pip3 install requests
|
||
![]()
8 years ago
|
|
||
![]()
6 years ago
|
COPY --from=builder /fetchmail-7.0.0-alpha6/fetchmail /usr/local/bin
|
||
![]()
8 years ago
|
COPY fetchmail.py /fetchmail.py
|
||
![]()
6 years ago
|
|
||
|
RUN adduser -D fetchmail
|
||
![]()
6 years ago
|
USER fetchmail
|
||
![]()
8 years ago
|
|
||
|
CMD ["/fetchmail.py"]
|