mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-03-22 13:47:19 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user