Created
March 23, 2020 17:53
-
-
Save bsolomon1124/d67154474d4534c7170c76b5e7490fed to your computer and use it in GitHub Desktop.
Example for https://stackoverflow.com/q/60814903/7954504
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 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