Files
crond/Dockerfile
Julien Cabillot 492e516cc5
Some checks are pending
perso/crond/pipeline/head Build queued...
chore: bump alpine
2026-03-31 18:30:58 -04:00

17 lines
481 B
Docker

FROM "alpine:3.23"
LABEL maintainer="Julien Cabillot <dockerimages@cabillot.eu>"
# Ce projet tourne en root, mais je ne voit pas encore comment l'en empecher.
# Par défaut cron doit pouvoir changer de user pour lire chaque crontab.
# En forcant un user comme guest, même avec un shell cela ne fonctionne pas.
RUN apk add --no-cache tini curl
COPY "run.sh" "/"
#ENTRYPOINT [ "/sbin/tini", "--" ]
CMD [ "/run.sh" ]
HEALTHCHECK --interval="10s" \
CMD pgrep crond || exit 1