Last active
November 18, 2019 08:54
-
-
Save Himura2la/c6b919e09aea243aa80f62ba608492c4 to your computer and use it in GitHub Desktop.
cron in docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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