Skip to content

πŸ™Œ OpenHands: AI-Driven Development

(Docker) Fix passing of POETRY_CACHE_DIR into RUN command (#3163)

tobitegea52df6a27247
diff --git a/containers/app/Dockerfile b/containers/app/Dockerfile
index adba7c8bab..198a30708d 100644
--- a/containers/app/Dockerfile
+++ b/containers/app/Dockerfile
@@ -26,7 +26,7 @@ RUN apt-get update -y \
COPY ./pyproject.toml ./poetry.lock ./
RUN touch README.md
-RUN poetry install --without evaluation --no-root && rm -rf $POETRY_CACHE_DIR
+RUN export POETRY_CACHE_DIR && poetry install --without evaluation --no-root && rm -rf $POETRY_CACHE_DIR
FROM python:3.12.3-slim AS runtime