Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Tweak poetry install

Tomáš Valenta683545cfd9f8
diff --git a/api-service/.gitignore b/api-service/.gitignore
index 8d45f7483..f919ea3ef 100644
--- a/api-service/.gitignore
+++ b/api-service/.gitignore
@@ -1,2 +1,3 @@
__pycache__
-dist
\ No newline at end of file
+dist
+.venv
\ No newline at end of file
diff --git a/api-service/Dockerfile b/api-service/Dockerfile
index 9b63b9ec3..584304666 100644
--- a/api-service/Dockerfile
+++ b/api-service/Dockerfile
@@ -15,7 +15,9 @@ RUN poetry config virtualenvs.in-project true
WORKDIR /app
COPY pyproject.toml poetry.lock ./
-RUN poetry install --without dev --no-root --no-ansi
+RUN --mount=type=cache,target=/home/.cache/pypoetry/cache \
+ --mount=type=cache,target=/home/.cache/pypoetry/artifacts \
+ poetry install --without dev --no-root --no-ansi --no-interaction
COPY . ./