Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Cleanup

Tomáš Valentabd1f3d6ff32a
diff --git a/api-service/Dockerfile b/api-service/Dockerfile
index 85fd6e3d9..ac83350ad 100644
--- a/api-service/Dockerfile
+++ b/api-service/Dockerfile
@@ -1,24 +1,20 @@
-FROM python:3.10-slim as base
+FROM python:3.10-slim
ENV PYTHONFAULTHANDLER=1 \
PYTHONHASHSEED=random \
PYTHONUNBUFFERED=1
-WORKDIR /app
-
ENV PIP_DEFAULT_TIMEOUT=100 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
PIP_NO_CACHE_DIR=1 \
POETRY_VERSION=1.4.0
RUN pip install "poetry==$POETRY_VERSION"
-RUN python -m venv /venv
-COPY pyproject.toml poetry.lock ./
-# RUN poetry export -f requirements.txt | /venv/bin/pip install -r /dev/stdin
+WORKDIR /app
-COPY . .
+COPY pyproject.toml poetry.lock ./
RUN poetry install
-# RUN poetry build && /venv/bin/pip install dist/*.whl
+COPY . ./
-CMD exec poetry run gunicorn --bind :$PORT --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