Sign inSign up

donnio/python3

By donnio

•Updated over 4 years ago

A build environment with Python 3.6 and an ancient Glibc, useful for AppImages?

Image
0

107

donnio/python3 repository overview

FROM centos:centos6

# Fix yum repo error: by @sergkudinov
# see - https://github.com/adaltas/node-nikita/issues/184
RUN sed -i -e 's/mirrorlist/#mirrorlist/g' \
  -e 's/#baseurl/baseurl/g' \
  -e 's/http:\/\/mirror.centos.org\/centos\/$releasever/https:\/\/vault.centos.org\/6.10/g' \
  /etc/yum.repos.d/CentOS-Base.repo \
  && yum clean all \
  && yum -y update

# Some Common Libraries/Utilities
RUN yum groupinstall -y 'Development Tools'
RUN yum install -y zlib-devel openssl-devel

WORKDIR /python3
RUN curl -L https://www.python.org/ftp/python/3.6.6/Python-3.6.6.tgz | tar --strip-components=1 -xzC . \
  && ./configure \
  && make -j$(nproc) \
  && make install \
  && rm -rf /python3

CMD ["/usr/local/bin/python3"]

Tag summary

Content type

Image

Digest

Size

377.3 MB

Last updated

over 4 years ago

docker pull donnio/python3:centos6