Files
archived-Mailu/optional/fetchmail/Dockerfile
Florent Daigniere 05b3ed8868 Fix #2766
(cherry picked from commit b65430b576)
2023-04-12 11:59:30 +00: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"]