Skip to content

Instantly share code, notes, and snippets.

@whitemike889
Forked from andyshinn/Dockerfile
Created June 9, 2021 22:50
Show Gist options
  • Save whitemike889/6d6ffa94e060014066cc940b5cb5a8d8 to your computer and use it in GitHub Desktop.
Save whitemike889/6d6ffa94e060014066cc940b5cb5a8d8 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