No description
Find a file
paspo 74b15d46d6
Some checks are pending
Container Publish / on-success-skip (push) Has been skipped
Container Publish / build-image (amd64) (push) Successful in 18s
Container Publish / build-image (arm64) (push) Successful in 14s
Container Publish / update docker manifest (push) Successful in 10s
Vulnerability Scan / Daily Vulnerability Scan (arm64) (push) Successful in 4s
Vulnerability Scan / Daily Vulnerability Scan (amd64) (push) Successful in 16s
Vulnerability Scan / Daily Vulnerability Scan-1 (push) Successful in 6s
Vulnerability Scan / Daily Vulnerability Scan (push) Successful in 10s
more secure image
2025-06-13 23:06:01 +02:00
.gitea/workflows switched from drone to gitea actions 2025-06-13 08:30:10 +02:00
src more secure image 2025-06-13 23:06:01 +02:00
.gitignore Initial commit 2022-09-20 08:48:15 +00:00
LICENSE Initial commit 2022-09-20 08:48:15 +00:00
README.md added bitwarden and migrated to debian 2022-10-20 23:30:03 +02:00

docker-python-runner

Build Status

Base docker container for running python scripts.

usage

version: '3.6'
services:
  runner:
    image: docker.asperti.com/paspo/python-runner:latest
    container_name: python-scripts
    restart: unless-stopped
    volumes:
      - ./scripts:/scripts
      - ./logs:/var/log
      - ./crontabs:/etc/cron.d:ro
    environment:
      TZ: Europe/Rome
mkdir scripts logs crontabs
touch scripts/test.py && chmod +x scripts/test.py
touch scripts/test2.py && chmod +x scripts/test2.py
cat <<EOF >crontabs/myscripts
*/5 7-22 * * * /scripts/test.py
*/10 7-22 * * * /scripts/test2.py
EOF
docker-compose up -d