Added docker support

This commit is contained in:
2026-09-23 03:26:09 +03:00
parent 22cc5d0034
commit 4b0a19713a
13 changed files with 186 additions and 95 deletions

View File

@@ -3,6 +3,7 @@
from __future__ import annotations
import html
import os
import re
import shutil
import subprocess
@@ -277,6 +278,8 @@ class PdfBuilder:
f"--print-to-pdf={destination}",
html_path.as_uri(),
]
if os.geteuid() == 0:
command.insert(1, "--no-sandbox")
try:
result = subprocess.run(
command,