Skip to content

Instantly share code, notes, and snippets.

@yardbirdsax
Last active August 10, 2020 16:48
Show Gist options
  • Save yardbirdsax/05a435451528c960ce21f31f874282b5 to your computer and use it in GitHub Desktop.
Save yardbirdsax/05a435451528c960ce21f31f874282b5 to your computer and use it in GitHub Desktop.
Helpful Docker build scripts
# 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