Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Cleanup

Tomáš Valenta26cc3f1bc6d7
diff --git a/api-service/.dockerignore b/api-service/.dockerignore
index 71f285d6d..1dafa3f6e 100644
--- a/api-service/.dockerignore
+++ b/api-service/.dockerignore
@@ -5,4 +5,5 @@ README.md
*.pyd
__pycache__
.pytest_cache
-dist
\ No newline at end of file
+dist
+.gitignore
diff --git a/api-service/Dockerfile b/api-service/Dockerfile
index 4507b2def..9b63b9ec3 100644
--- a/api-service/Dockerfile
+++ b/api-service/Dockerfile
@@ -1,4 +1,4 @@
-FROM python:3.10
+FROM python:3.10-slim
ENV PYTHONFAULTHANDLER=1 \
PYTHONHASHSEED=random \
@@ -9,17 +9,14 @@ ENV PIP_DEFAULT_TIMEOUT=100 \
PIP_NO_CACHE_DIR=1 \
POETRY_VERSION=1.4.0
-ENV PIPENV_VENV_IN_PROJECT 1
-
RUN pip install "poetry==$POETRY_VERSION"
-# RUN poetry config virtualenvs.path /venv
RUN poetry config virtualenvs.in-project true
WORKDIR /app
COPY pyproject.toml poetry.lock ./
-RUN poetry install
-COPY . ./
+RUN poetry install --without dev --no-root --no-ansi
+COPY . ./
-ENTRYPOINT ["poetry", "run", "gunicorn", "--bind", "0.0.0.0:8080", "--workers", "1" ,"--threads", "8", "--timeout", "0", "app:app"]
+CMD exec poetry run gunicorn --bind 0.0.0.0:$PORT --workers 1 --threads 8 --timeout 0 app:app
diff --git a/api-service/README.md b/api-service/README.md
deleted file mode 100644
index e69de29bb..000000000
diff --git a/api-service/tests/__init__.py b/api-service/tests/__init__.py
deleted file mode 100644
index e69de29bb..000000000