From 1f4e08ad3178e34ef42d5fda93aa93ef6a3a118e Mon Sep 17 00:00:00 2001 From: Jacky-Pham Date: Thu, 8 Oct 2026 10:53:19 -0700 Subject: [PATCH] Clean Business API Poetry cache in the install layer --- legal-api/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/legal-api/Dockerfile b/legal-api/Dockerfile index f71fadcbf9..43b043027d 100644 --- a/legal-api/Dockerfile +++ b/legal-api/Dockerfile @@ -77,7 +77,8 @@ RUN echo "$APP_ENV" \ && poetry version \ # Install deps: && poetry run pip install -U pip \ - && poetry install --only main --no-interaction --no-ansi + && poetry install --only main --no-interaction --no-ansi \ + && rm -rf "$POETRY_CACHE_DIR" # Running as non-root user: USER web