added continous run functionality
These changes allow the container to run indefinitely if desired by setting a SLEEP_DURATION environment variable, or to just run once if it's not set, as it does now.
I've been using this container for a while and loving it! The one thing I thought was missing was the ability to run automatically and I've tried all sorts of ways to do so (unsuccessfully) and it's become a bit of a pain point for me now. I feel this may also be an issue others are experiencing too so I'd like to request that a solution for it, such as this one, be included in your container.
Thanks :)
I'd suggest naming it SLEEP_SECONDS instead of SLEEP_DURATION. I don't have an opinion on whether this feature is a good idea in general.