From f51224ecaa3f801ea49cefca118ce11bc4f2abd9 Mon Sep 17 00:00:00 2001 From: Moritz Maxeiner <mm@ucw.sh> Date: Wed, 17 Nov 2021 17:03:09 +0100 Subject: [PATCH] [centos] Add portable python 3.8.12 distribution --- centos/Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/centos/Dockerfile b/centos/Dockerfile index e611922..7b19edb 100644 --- a/centos/Dockerfile +++ b/centos/Dockerfile @@ -561,3 +561,15 @@ RUN yum install -y \ json-devel \ && \ yum clean all + +# Portable Python 3.8 + +RUN mkdir -p /opt/python && \ + cd /opt/python && \ + curl -sSLO https://github.com/niess/python-appimage/releases/download/python3.8/python3.8.12-cp38-cp38-manylinux1_x86_64.AppImage && \ + chmod +x python3.8.12-cp38-cp38-manylinux1_x86_64.AppImage && \ + ./python3.8.12-cp38-cp38-manylinux1_x86_64.AppImage --appimage-extract && \ + rm -f python3.8.12-cp38-cp38-manylinux1_x86_64.AppImage && \ + mv squashfs-root 3.8 + +RUN tar -C /opt/python/3.8/ --numeric-owner --xattrs --xattrs-include='*' -cf /opt/python/python-3.8.tar . -- GitLab