Skip to content

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.

fix(agent/docker): Fix venv issue fix for Docker build on Google Cloud

Reinier van der Leer604217a9573a
diff --git a/autogpts/autogpt/Dockerfile b/autogpts/autogpt/Dockerfile
index 977aa8fe49..941620e8be 100644
--- a/autogpts/autogpt/Dockerfile
+++ b/autogpts/autogpt/Dockerfile
@@ -19,6 +19,7 @@ ENV PIP_NO_CACHE_DIR=yes \
PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
POETRY_HOME="/opt/poetry" \
+ POETRY_VIRTUALENVS_PATH="/venv" \
POETRY_VIRTUALENVS_IN_PROJECT=0 \
POETRY_NO_INTERACTION=1
@@ -26,7 +27,6 @@ ENV PIP_NO_CACHE_DIR=yes \
RUN curl -sSL https://install.python-poetry.org | python3 -
ENV PATH="$POETRY_HOME/bin:$PATH"
RUN poetry config installer.max-workers 10
-RUN poetry config virtualenvs.path /venv
WORKDIR /app
COPY pyproject.toml poetry.lock ./