Skip to content

Instantly share code, notes, and snippets.

@jasonben
Forked from andyshinn/Dockerfile
Created January 4, 2016 21:10
Show Gist options
  • Save jasonben/ce1fd858dcb94a791604 to your computer and use it in GitHub Desktop.
Save jasonben/ce1fd858dcb94a791604 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