16b9c2777SJohn Snow# Python library testing environment 26b9c2777SJohn Snow 36b9c2777SJohn SnowFROM fedora:latest 46b9c2777SJohn SnowMAINTAINER John Snow <jsnow@redhat.com> 56b9c2777SJohn Snow 66b9c2777SJohn Snow# Please keep this list sorted alphabetically 76b9c2777SJohn SnowENV PACKAGES \ 86b9c2777SJohn Snow gcc \ 96b9c2777SJohn Snow make \ 106b9c2777SJohn Snow python3 \ 116b9c2777SJohn Snow python3-pip \ 126b9c2777SJohn Snow python3-tox \ 136b9c2777SJohn Snow python3-virtualenv \ 146b9c2777SJohn Snow python3.10 156b9c2777SJohn Snow 166b9c2777SJohn SnowRUN dnf install -y $PACKAGES 176b9c2777SJohn SnowRUN rpm -q $PACKAGES | sort > /packages.txt 18*93bd2954SAlex Bennée# As a final step configure the user (if env is defined) 19*93bd2954SAlex BennéeARG USER 20*93bd2954SAlex BennéeARG UID 21*93bd2954SAlex BennéeRUN if [ "${USER}" ]; then \ 22*93bd2954SAlex Bennée id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi 23