From 566a4a4a38eb609551fc2250231f39b13aba1780 Mon Sep 17 00:00:00 2001 From: Gabriel Simmer Date: Sat, 3 Aug 2024 21:33:21 +0100 Subject: [PATCH] Pull latest image when main.py is run --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index 875597f..0eb86f1 100644 --- a/main.py +++ b/main.py @@ -6,6 +6,7 @@ import hashlib URL = 'https://arch.dog' def main(): + subprocess.run(['/usr/bin/docker', 'pull', 'git.gmem.ca/arch/servo:latest']) filename = os.path.join('/tmp', str(uuid.uuid4())) ARGS = ['-z', '-y2', f'-o{filename}', '--resolution=1920x1080'] print(f'rendering {URL} to {filename}')