Skip to content

About

This Docker image, designed with simplicity and efficiency in mind, serves as a robust solution for scheduling and executing Python scripts via cron jobs. Based on the lightweight Alpine Linux, this image is both compact and fast, making it ideal for various cron job applications.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

34 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Cron Image With Python

Overview

This Docker image provides cron job. It is built on Alpine and includes Python.

Quick Start

To build the image:

docker build -t cron-python src

To 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-python

To get logs:

docker logs <your-container-name>

Contributing

Contributions to this Docker image are welcome. Please submit a pull request or issue on the repository.

License

MIT License

About

This Docker image, designed with simplicity and efficiency in mind, serves as a robust solution for scheduling and executing Python scripts via cron jobs. Based on the lightweight Alpine Linux, this image is both compact and fast, making it ideal for various cron job applications.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages