Created
May 25, 2018 05:23
-
-
Save source-nerd/e4037755b2e76f8d8346c01548930e95 to your computer and use it in GitHub Desktop.
Docker Image for Ubuntu 18.04 and Python 3.6
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
FROM ubuntu:18.04 | |
RUN apt-get update | |
RUN apt-get install -y build-essential | |
# This will install Python, pip, pip3, and pip3.6. | |
RUN curl https://bootstrap.pypa.io/ez_setup.py -o - | python3.6 && python3.6 -m easy_install pip | |
RUN apt-get update | |
RUN apt-get install -y python3.6-venv | |
# Inorder to run pip3.6, run it the following way `python3.6 -m pip` | |
# Update Python & Install wheel | |
RUN python3.6 -m pip install pip --upgrade | |
RUN python3.6 -m pip install wheel | |
# TO Run | |
# docker build -t ubuntu1804 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Copying the content of "ez_setup.py" in case it gets removed: