fix: pin Poetry >=2.3.0 in Dockerfile to match lockfile hash algorithm

Poetry 2.3.0 changed the content-hash algorithm to include dependency
groups. The Docker build cache had an older Poetry version that computed
a different hash, causing 'pyproject.toml changed significantly' errors.
Pinning >=2.3.0 ensures the Dockerfile installs a compatible version and
also busts the stale cache layer.

Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
openhands
2026-03-16 19:04:55 +00:00
parent 4b9097068d
commit 565a5702c3

View File

@@ -22,7 +22,7 @@ ENV POETRY_NO_INTERACTION=1 \
RUN apt-get update -y \
&& apt-get install -y curl make git build-essential jq gettext \
&& python3 -m pip install poetry --break-system-packages
&& python3 -m pip install "poetry>=2.3.0" --break-system-packages
COPY pyproject.toml poetry.lock ./
RUN touch README.md