Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Config venv

Tomáš Valenta6579d4d0a1f3
diff --git a/api-service/Dockerfile b/api-service/Dockerfile
index b5bfb0157..c8805ba51 100644
--- a/api-service/Dockerfile
+++ b/api-service/Dockerfile
@@ -9,7 +9,9 @@ ENV PIP_DEFAULT_TIMEOUT=100 \
PIP_NO_CACHE_DIR=1 \
POETRY_VERSION=1.4.0
+
RUN pip install "poetry==$POETRY_VERSION"
+RUN poetry config virtualenvs.path /venv
WORKDIR /app
@@ -17,4 +19,5 @@ COPY pyproject.toml poetry.lock ./
RUN poetry install
COPY . ./
+
ENTRYPOINT ["poetry", "run", "gunicorn", "--bind", "0.0.0.0:8080", "--workers", "1" ,"--threads", "8", "--timeout", "0", "app:app"]