yemeishu 2 недель назад
Родитель
Сommit
19bc5b5965
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      app/Services/ExamPdfExportService.php

+ 3 - 0
app/Services/ExamPdfExportService.php

@@ -119,7 +119,10 @@ class ExamPdfExportService
             '--headless',
             '--disable-gpu',
             '--no-sandbox',
+            '--disable-setuid-sandbox',
             '--disable-dev-shm-usage', // 避免容器内 /dev/shm 过小导致崩溃
+            '--no-zygote',
+            '--single-process',
             '--print-to-pdf=' . $tmpPdf,
             '--print-to-pdf-no-header',
             '--allow-file-access-from-files',