Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

new env:NO_GUI

hy.li1c3a714ad34a
diff --git a/Dockerfile b/Dockerfile
index 2000b49a3..7c13edc50 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -8,6 +8,7 @@ RUN apt update &&\
# Install Mermaid CLI globally
ENV CHROME_BIN="/usr/bin/chromium" \
+ NO_GUI="true"\
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true"
RUN npm install -g @mermaid-js/mermaid-cli &&\
npm cache clean --force
diff --git a/metagpt/utils/mermaid.py b/metagpt/utils/mermaid.py
index 0fbc9f621..406ad00ee 100644
--- a/metagpt/utils/mermaid.py
+++ b/metagpt/utils/mermaid.py
@@ -13,7 +13,7 @@ from metagpt.const import PROJECT_ROOT
from metagpt.logs import logger
from 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: