aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Helmert III <ajak@gentoo.org>2023-06-28 19:22:56 -0700
committerJohn Helmert III <ajak@gentoo.org>2023-06-29 08:22:35 -0700
commitc98033b1dc679a5e3ded53ee52ad15e738eeb0a0 (patch)
tree26c7e364180d9807542665443e79331227ce310e /python.Dockerfile
parentBump CI actions to silence warnings (diff)
downloaddocker-images-c98033b1dc679a5e3ded53ee52ad15e738eeb0a0.tar.gz
docker-images-c98033b1dc679a5e3ded53ee52ad15e738eeb0a0.tar.bz2
docker-images-c98033b1dc679a5e3ded53ee52ad15e738eeb0a0.zip
add plumbing to produce a python testing image
Closes: #73 Signed-off-by: John Helmert III <ajak@gentoo.org> Closes: https://github.com/gentoo/gentoo-docker-images/pull/128
Diffstat (limited to 'python.Dockerfile')
-rw-r--r--python.Dockerfile16
1 files changed, 16 insertions, 0 deletions
diff --git a/python.Dockerfile b/python.Dockerfile
new file mode 100644
index 0000000..7b61532
--- /dev/null
+++ b/python.Dockerfile
@@ -0,0 +1,16 @@
+FROM gentoo/stage3:amd64-nomultilib-openrc
+
+# derived from https://github.com/projg2/gentoo-python-image/blob/master/Dockerfile
+
+RUN echo '*/* ~amd64' >> /etc/portage/package.accept_keywords/base.conf \
+ && echo '*/* full-stdlib sqlite' >> /etc/portage/package.use/python \
+ && echo 'dev-vcs/git -perl' >> /etc/portage/package.use/git \
+ && wget --progress=dot:mega -O - https://github.com/gentoo-mirror/gentoo/archive/master.tar.gz | tar -xz \
+ && mv gentoo-master /var/db/repos/gentoo \
+ && emerge -1vnt --jobs dev-python/tox app-arch/lzip dev-vcs/git \
+ dev-python/pypy{,3_9,3_10}-exe-bin dev-db/sqlite \
+ && emerge -1v --jobs --nodeps dev-lang/python:{2.7,3.8,3.9,3.10,3.11,3.12} \
+ dev-python/pypy{,3_9,3_10,3} \
+ && rm -r /var/db/repos/* /var/cache/distfiles/*
+
+CMD ["/bin/bash"]