Skip to content

Instantly share code, notes, and snippets.

@mybigman
Forked from andyshinn/Dockerfile
Created September 4, 2021 03:58
Show Gist options
  • Save mybigman/256ee0b10d82671f48f9f0a21a547248 to your computer and use it in GitHub Desktop.
Save mybigman/256ee0b10d82671f48f9f0a21a547248 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