paspo 74b15d46d6
Some checks failed
Container Publish / build-image (arm64) (push) Successful in 1m41s
Container Publish / build-image (amd64) (push) Successful in 3m1s
Container Publish / update docker manifest (push) Successful in 11s
Container Publish / on-success-skip (push) Failing after 12m43s
Vulnerability Scan / Daily Vulnerability Scan (arm64) (push) Successful in 7s
Vulnerability Scan / Daily Vulnerability Scan (amd64) (push) Successful in 26s
more secure image
2025-06-13 23:06:01 +02:00
2025-06-13 23:06:01 +02:00
2022-09-20 08:48:15 +00:00
2022-09-20 08:48:15 +00: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
Description
No description provided
Readme GPL-3.0 57 KiB
Languages
Dockerfile 92.8%
Shell 7.2%