Skip to content

Instantly share code, notes, and snippets.

@bsolomon1124
Created March 23, 2020 17:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bsolomon1124/d67154474d4534c7170c76b5e7490fed to your computer and use it in GitHub Desktop.
Save bsolomon1124/d67154474d4534c7170c76b5e7490fed to your computer and use it in GitHub Desktop.
FROM ubuntu:bionic
ENV LANG C.UTF-8
RUN which pip || true
RUN set -ex \
&& apt-get update -y \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
wget \
ca-certificates \
make \
build-essential \
libssl-dev \
zlib1g-dev \
libbz2-dev \
libreadline-dev \
libsqlite3-dev \
llvm \
libncurses5-dev \
libncursesw5-dev \
xz-utils \
tk-dev \
libffi-dev \
liblzma-dev \
python-openssl \
&& rm -rf /var/lib/apt/lists/* \
&& cd /opt \
&& wget https://www.python.org/ftp/python/3.6.10/Python-3.6.10.tgz \
&& tar -xvf Python-3.6.10.tgz \
&& cd Python-3.6.10 \
&& ./configure --with-ssl \
&& make \
&& make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment