Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Change docker CMD format

Tomáš Valentad17f2009889e
diff --git a/api-service/Dockerfile b/api-service/Dockerfile
index c0688aa53..d16c444dc 100644
--- a/api-service/Dockerfile
+++ b/api-service/Dockerfile
@@ -17,4 +17,4 @@ COPY pyproject.toml poetry.lock ./
RUN poetry install
COPY . ./
-CMD exec poetry run gunicorn --bind 0.0.0.0:8080 --workers 1 --threads 8 --timeout 0 app:app
+CMD ["sh", "-c", "poetry", "run", "gunicorn", "--bind", "0.0.0.0:${PORT}", "--workers", "1" ,"--threads", "8", "--timeout", "0", "app:app"]