ENV PATH="/root/.local/bin:${PATH}"
# Install Python and deps
-RUN dnf install -y python3.7 python3.8 python3.9 python3.10 python3.10-devel python3 python3-devel python3-gobject\
- git which diffutils gcc pkg-config cairo-devel gobject-introspection-devel cairo-gobject-devel\
- && dnf clean all
+RUN dnf install -y\
+ python3.8 python3.9 python3.10 python3.10-devel\
+ python3.11 python3.11-devel python3.12 python3.12-devel\
+ python3-gobject pipx git which diffutils gcc pkg-config\
+ cairo-devel gobject-introspection-devel cairo-gobject-devel\
+ && dnf clean all
-# Install pip
-RUN python3.7 -m ensurepip\
- # Install poetry
- && curl -sSL https://install.python-poetry.org | python3 - --version 1.4.2\
- # not exactly required, but helpful
- && python3.7 -m pip install poethepoet
+# Install poetry
+RUN pipx install poetry==1.4.2\
+ # not exactly required, but helpful
+ && pipx install poethepoet