docker-python-cronjob icon indicating copy to clipboard operation
docker-python-cronjob copied to clipboard

Support for ENV vars?

Open conor-f opened this issue 3 years ago • 1 comments

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.

conor-f avatar Feb 12 '23 18:02 conor-f

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

eMUQI avatar Apr 22 '25 10:04 eMUQI