Last active
November 17, 2020 08:38
-
-
Save lewangdev/fc17c797fbb1e339b259aa286ac1526e to your computer and use it in GitHub Desktop.
Dockerfile
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 centos/s2i-base-centos7 | |
MAINTAINER Le Wang <[email protected]> | |
ARG PYTHON_VERSION=3.5.10 | |
RUN yum install -y \ | |
ncurses-libs \ | |
zlib-devel \ | |
mysql-devel \ | |
bzip2-devel \ | |
openssl-devel \ | |
ncurses-devel \ | |
sqlite-devel \ | |
readline-devel \ | |
tk-devel \ | |
gdbm-devel \ | |
db4-devel \ | |
libpcap-devel \ | |
xz-devel \ | |
clang \ | |
curl \ | |
wget | |
ENV LANG en_US.UTF-8 | |
ENV PYENV_ROOT="/.pyenv" \ | |
PATH="/.pyenv/bin:/.pyenv/shims:$PATH" | |
RUN curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash && \ | |
wget https://npm.taobao.org/mirrors/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tar.xz -P /.pyenv/cache/ && \ | |
pyenv install ${PYTHON_VERSION} && \ | |
pyenv global ${PYTHON_VERSION} && \ | |
rm -f /.pyenv/cache/Python-${PYTHON_VERSION}.tar.xz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment