Created
May 1, 2015 10:50
-
-
Save hirokazumiyaji/3d9f553ff9b806f53dfc to your computer and use it in GitHub Desktop.
Dockerfile(python)
This file contains hidden or 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 google/debian: | |
RUN echo 'deb http://security.debian.org/ jessie/updates main\ndeb-src http://security.debian.org/ jessie/updates main\ndeb http://ftp.us.debian.org/debian jessie main non-free\ndeb-src http://ftp.us.debian.org/debian jessie main non-free' >> /etc/apt/sources.list && \ | |
apt-get -y update && apt-get -y upgrade && apt-get clean && rm -rf /var/cache/apt/archives/* && \ | |
apt-get -y install --no-install-recommends gcc-4.9 g++-4.9 curl make ca-certificates libssl-dev openssl readline-common libmysqlclient-dev && \ | |
cd /tmp && curl -L -O https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz && \ | |
tar -xvf Python-2.7.9.tgz && cd Python-2.7.9 && ./configure --with-ensurepip=install && make -s -j2 && make install && \ | |
rm -rf /tmp/* /var/lib/apt/lists/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment