1# Python library testing environment
2
3FROM fedora:latest
4MAINTAINER John Snow <jsnow@redhat.com>
5
6# Please keep this list sorted alphabetically
7ENV PACKAGES \
8    gcc \
9    make \
10    python3 \
11    python3-pip \
12    python3-tox \
13    python3-virtualenv \
14    python3.10
15
16RUN dnf install -y $PACKAGES
17RUN rpm -q $PACKAGES | sort > /packages.txt
18# As a final step configure the user (if env is defined)
19ARG USER
20ARG UID
21RUN if [ "${USER}" ]; then \
22  id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi
23