Added docker support
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user