python.docker 591 B

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