Cron in Docker

Or skip the sidecar: expose the route and let Supercrontab call it. Below, every schedule with a Docker example you can paste.

# Dockerfile
RUN apk add --no-cache curl
RUN echo '*/5 * * * * curl -fsS http://app:3000/cron/run' > /etc/crontabs/root
CMD ["crond", "-f", "-l", "2"]