This Docker image provides cron job. It is built on Alpine and includes Python.
To build the image:
docker build -t cron-python srcTo run the image:
docker run -d \
--restart unless-stopped \
-v "$(pwd)/src/data/script.py:/scripts/script.py" \
-v "$(pwd)/src/data/cron.crontab:/etc/crontabs/root" \
-e TZ=Europe/Paris \
--name <your-container-name> \
cron-pythonTo get logs:
docker logs <your-container-name>Contributions to this Docker image are welcome. Please submit a pull request or issue on the repository.
MIT License