FROM centos:centos7 MAINTAINER Robert Cowham "rcowham@perforce.com" ARG pythonver=3.5.2 RUN yum update -y; \ yum install -y sudo; \ yum install -y wget; \ yum groupinstall -y "Development tools"; \ yum install -y zlib-devel bzip2-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel; \ yum install -y openssl openssl-devel; \ yum clean -y all; \ echo /usr/local/lib>> /etc/ld.so.conf; \ echo /usr/lib64>> /etc/ld.so.conf; \ sed -ie "s/^Defaults[ \t]*requiretty/#Defaults requiretty/g" /etc/sudoers # Python 3.6 plus p4python RUN yum install -y centos-release-scl; \ yum install -y rh-python36 ADD install-p4python.sh /tmp RUN /bin/bash -x /tmp/install-p4python.sh