Skip to content

Commit 6799e00

Browse files
rodrigoluizsRodrigo Silva
authored andcommitted
fix(docker): pin Poetry to 2.2.1 for Python 3.9 compatibility (#8735)
Poetry 2.3.0 dropped Python 3.9 support. Without cache the installer fetches the latest version (currently 2.3.2), which fails on the python:3.9-slim-bookworm base image. Pin to 2.2.1, the last release compatible with Python 3.9. Co-authored-by: Rodrigo Silva <rodrigo.silva@bonial.com>
1 parent fdf587c commit 6799e00

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ RUN python3 -m pip install --no-cache --upgrade pip setuptools && \
149149
python3 -m pip install --upgrade pip
150150

151151
# Setup Python Poetry package manager
152-
RUN curl -sSL https://install.python-poetry.org | python3 -
152+
RUN curl -sSL https://install.python-poetry.org | python3 - --version 2.2.1
153153
ENV PATH="$PATH:/app/.local/bin"
154154

155155
# Build Python plugins, make sure the scripts has execute permission

0 commit comments

Comments
 (0)