Skip to content

Instantly share code, notes, and snippets.

@ff6347
Forked from andyshinn/Dockerfile
Created September 1, 2016 09:34
Show Gist options
  • Select an option

  • Save ff6347/f9251dd6a2227d307b5f29422485ff41 to your computer and use it in GitHub Desktop.

Select an option

Save ff6347/f9251dd6a2227d307b5f29422485ff41 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