# Until https://github.com/aptible/supercronic/issues/177 is solved, we need to
# use the full path to supercronic.
FROM docker.io/alpine:3.22
# hadolint ignore=DL3018
RUN apk add --update --no-cache \
        supercronic \
    && \
    touch /crontab
WORKDIR /tmp
USER nobody
CMD [ "/usr/bin/supercronic", "/crontab" ]
HEALTHCHECK CMD pgrep supercronic
RUN /usr/bin/supercronic -test /crontab
ONBUILD COPY crontab /crontab
ONBUILD RUN /usr/bin/supercronic -test /crontab
