AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fixes #1821 by installing required drivers and adding options to chromedriver
Peter Svensson92ab3e0e8b2e
diff --git a/Dockerfile b/Dockerfileindex 309b857c1c..82672c94ba 100644--- a/Dockerfile+++ b/Dockerfile@@ -4,6 +4,7 @@ FROM python:3.11-slim# Install gitRUN apt-get -y updateRUN apt-get -y install git+RUN apt-get install -y libglib2.0 libnss3 libgconf-2-4 libfontconfig1 chromium-driver# Set environment variablesENV PIP_NO_CACHE_DIR=yes \@@ -24,4 +25,4 @@ RUN pip install --no-cache-dir --user -r requirements-docker.txtCOPY --chown=appuser:appuser autogpt/ ./autogpt# Set the entrypoint-ENTRYPOINT ["python", "-m", "autogpt"]+ENTRYPOINT ["python", "-m", "autogpt", "--debug"]diff --git a/autogpt/commands/web_selenium.py b/autogpt/commands/web_selenium.pyindex 359803eed3..3dbd1b98bc 100644--- a/autogpt/commands/web_selenium.py+++ b/autogpt/commands/web_selenium.py@@ -74,6 +74,10 @@ def scrape_text_with_selenium(url: str) -> Tuple[WebDriver, str]:# See https://developer.apple.com/documentation/webkit/testing_with_webdriver_in_safaridriver = webdriver.Safari(options=options)else:+ options.add_argument('--no-sandbox')+ options.add_argument('--window-size=1420,1080')+ options.add_argument('--headless')+ options.add_argument('--disable-gpu')driver = webdriver.Chrome(executable_path=ChromeDriverManager().install(), options=options)