Last active
June 14, 2023 20:31
-
-
Save monkut/c4c07059444fd06f3f8661e13ccac619 to your computer and use it in GitHub Desktop.
Base Docker image for ubuntu-16.04 & Python3.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
# docker build -t ubuntu1604py36 | |
FROM ubuntu:16.04 | |
RUN apt-get update && \ | |
apt-get install -y software-properties-common && \ | |
add-apt-repository ppa:jonathonf/python-3.6 | |
RUN apt-get update | |
RUN apt-get install -y build-essential python3.6 python3.6-dev python3-pip python3.6-venv | |
RUN apt-get install -y git | |
# update pip | |
RUN python3.6 -m pip install pip --upgrade | |
RUN python3.6 -m pip install wheel | |
@arunkumarchan
U can try:
add-apt-repository ppa:deadsnakes/ppa
Env variable in not set in this ..
how can i set it ?
Now is December 2020, your code doesn't work.
Somehow, those codes just got us Python 3.5.2, not Python 3.6.
so how can we get python 3.6
I have to build Images FROM ubuntu:18.04.
This way works.
In case you must use 16.04 only, I have no idea.
wait what do u mean by this way . i was using centos 7 and everything worked but now i converted to ubuntu and idc about the version i just need jdk8 , python3.6 and pip . could u help me out . i am relaly new to all this and any help would be extremly appreciatedd
Does some add-apt-repository ppa:???
latest updated?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What other PPA can I use here? Any help on this is appreciated.
Thanks in Advance