remake dockerfile

This commit is contained in:
Thephaseless
2024-10-18 15:53:36 +00:00
parent 652db1caba
commit 158d6fc56e
5 changed files with 532 additions and 889 deletions
+3 -2
View File
@@ -23,8 +23,9 @@ async def new_browser():
Any exceptions that may occur during the creation of the browser instance.
"""
config: webdriver.Config = webdriver.Config()
config.sandbox = False
config: webdriver.Config = webdriver.Config(
browser_executable_path="/usr/bin/chromium", sandbox=True
)
config.add_argument(f"--load-extension={','.join(downloaded_extentions)}")
return await webdriver.start(config=config)