Added puppeteer no-sandbox
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2020-08-12 07:52:43 +02:00
parent 1717a7e840
commit debd2a8693
1 changed files with 4 additions and 1 deletions

View File

@ -28,7 +28,10 @@ class Report extends Component {
if (fs.existsSync(fullPath))
options = require(optionsPath);
const browser = await puppeteer.launch({headless: true});
const browser = await puppeteer.launch({
headless: true,
args: ['--no-sandbox', '--disable-setuid-sandbox']
});
const page = await browser.newPage();
await page.setContent(template);