Slim down chrome requirements for the server
This commit is contained in:
parent
cb92b845e6
commit
bf156eaf7f
1 changed files with 1 additions and 0 deletions
|
|
@ -12,6 +12,7 @@ import (
|
|||
|
||||
func GeneratePDF(ctx context.Context, path string) ([]byte, error) {
|
||||
// create context
|
||||
chromedp.Env("CHROME_FLAGS=--no-sandbox --disable-gpu --disable-dev-shm-usage")
|
||||
chrome_ctx, cancel := chromedp.NewContext(context.Background())
|
||||
defer cancel()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue