🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
new env:NO_GUI
hy.li1c3a714ad34a
diff --git a/Dockerfile b/Dockerfileindex 2000b49a3..7c13edc50 100644--- a/Dockerfile+++ b/Dockerfile@@ -8,6 +8,7 @@ RUN apt update &&\# Install Mermaid CLI globallyENV CHROME_BIN="/usr/bin/chromium" \+ NO_GUI="true"\PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true"RUN npm install -g @mermaid-js/mermaid-cli &&\npm cache clean --forcediff --git a/metagpt/utils/mermaid.py b/metagpt/utils/mermaid.pyindex 0fbc9f621..406ad00ee 100644--- a/metagpt/utils/mermaid.py+++ b/metagpt/utils/mermaid.py@@ -13,7 +13,7 @@ from metagpt.const import PROJECT_ROOTfrom metagpt.logs import loggerfrom metagpt.utils.common import check_cmd_exists-IS_DOCKER = os.environ.get('PUPPETEER_SKIP_CHROMIUM_DOWNLOAD', 'false').lower()+IS_DOCKER = os.environ.get('NO_GUI', 'false').lower()def mermaid_to_file(mermaid_code, output_file_without_suffix, width=2048, height=2048) -> int: