Skip to content

Instantly share code, notes, and snippets.

@Himura2la
Last active November 18, 2019 08:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Himura2la/c6b919e09aea243aa80f62ba608492c4 to your computer and use it in GitHub Desktop.
Save Himura2la/c6b919e09aea243aa80f62ba608492c4 to your computer and use it in GitHub Desktop.
cron in docker
FROM debian
RUN apt-get update && apt-get install cron -y
RUN echo '* * * * * echo "[$(date -Is)] Job fired!" > /proc/1/fd/1 2>/proc/1/fd/2' | crontab
CMD ["cron", "-f"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment