1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-04-23 12:08:54 +02:00
Mailu/optional/fetchmail/Dockerfile
Florent Daigniere b65430b576 Fix #2766
2023-04-12 12:37:17 +02:00

20 lines
361 B
Docker

# syntax=docker/dockerfile-upstream:1.4.3
# fetchmail image
FROM base
ARG VERSION=local
LABEL version=$VERSION
RUN set -euxo pipefail \
; apk add --no-cache fetchmail openssl \
; mkdir -p /data
COPY fetchmail.py /
RUN echo $VERSION >/version
HEALTHCHECK --start-period=350s CMD ["/bin/sh", "-c", "ps ax | grep [/]fetchmail.py"]
CMD ["/fetchmail.py"]