Skip to content

Commit

Permalink
add chrome flags to hopefully make it work in the container
Browse files Browse the repository at this point in the history
  • Loading branch information
cbackas committed Oct 29, 2024
1 parent 5dd2814 commit 51fb31d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion map_service/src/browser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pub async fn get_screenshot(url: &str) -> anyhow::Result<Vec<u8>> {
caps.insert(
"goog:chromeOptions".to_string(),
serde_json::json!({
"args": ["--headless", "--disable-gpu", "--window-size=1600,1600"]
"args": ["--headless", "--disable-gpu", "--window-size=1600,1600", "--no-sandbox", "--disable-dev-shm-usage"]
}),
);
caps
Expand Down

0 comments on commit 51fb31d

Please sign in to comment.