docker-python-cronjob
docker-python-cronjob copied to clipboard
Support for ENV vars?
This example doesn't support env vars which is an issue as they are commonly used for configuring docker containers and they have a lot of pitfalls. e.g. exporting the PATH and what I've failed at specifically, getting the ENV vars passed from a .env file to be usable in the python script.
Cron can be tricky with environment variables. For an easier setup, try Supercronic—check out this example: https://github.com/eMUQI/docker-python-supercronic-example