Last active
August 10, 2020 16:48
-
-
Save yardbirdsax/05a435451528c960ce21f31f874282b5 to your computer and use it in GitHub Desktop.
Helpful Docker build scripts
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
# Usage | |
# ./install-python.sh 3.7.8 | |
# | |
# Easy install using `curl`: | |
# curl | |
apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \ | |
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \ | |
xz-utils tk-dev libffi-dev liblzma-dev \ | |
&& curl -L https://www.python.org/ftp/python/$1/Python-$1.tgz -o Python-$1.tgz \ | |
&& tar xvf Python-$1.tgz \ | |
&& cd Python-$1 \ | |
&& ./configure --enable-shared \ | |
&& make -j8 \ | |
&& make altinstall |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment