Created
August 16, 2016 03:42
-
-
Save rokujyouhitoma/f436ebadd66694153d1bf00c969f33b3 to your computer and use it in GitHub Desktop.
Dockerfile for Python2.7.11 on Centos7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM centos:centos7 | |
MAINTAINER Ike Tohru "tohru.ike@itakoh.co.jp" | |
RUN yum -y update; yum clean all | |
RUN yum -y install epel-release; yum clean all | |
RUN yum -y install python-pip; yum clean all | |
RUN yum groupinstall -y development && \ | |
yum install -y bzip2-devel git hostname openssl openssl-devel sqlite-devel sudo tar zlib-dev | |
RUN cd /tmp && \ | |
curl -O https://www.python.org/ftp/python/2.7.11/Python-2.7.11.tgz && \ | |
tar xvfz Python-2.7.11.tgz && \ | |
cd Python-2.7.11 && \ | |
./configure --prefix=/usr/local && \ | |
make && \ | |
make altinstall |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment