Skip to content

Instantly share code, notes, and snippets.

@janbaer
Forked from andyshinn/Dockerfile
Created October 22, 2016 16:11
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 janbaer/d73b9eee72da913619620e3b9a24f27b to your computer and use it in GitHub Desktop.
Save janbaer/d73b9eee72da913619620e3b9a24f27b to your computer and use it in GitHub Desktop.
BusyBox cron container example
FROM gliderlabs/alpine:3.3
COPY myawesomescript /bin/myawesomescript
COPY root /var/spool/cron/crontabs/root
RUN chmod +x /bin/myawesomescript
CMD crond -l 2 -f
#!/bin/sh
echo "Hi Andy" >> /dev/stdout
* * * * * /bin/myawesomescript
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment