Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rokujyouhitoma/f436ebadd66694153d1bf00c969f33b3 to your computer and use it in GitHub Desktop.
Save rokujyouhitoma/f436ebadd66694153d1bf00c969f33b3 to your computer and use it in GitHub Desktop.
Dockerfile for Python2.7.11 on Centos7
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