I have some problem in building the docker image.
Can anyone share their docker file to build python environment ?
I really appreciate.
Created by Yatong Han Unicorn_H Could you try to delete all images you built and clear the cache, then rebuild with this code. The thing is I think it says Step 2/13 :
RUN apt-get update
-> Using cache ***
-> e016f9b7fa1a
so you might want to update again to get things going. it looks like:
$ docker build -t docker.synapse.org/syn11387043/my-repo ./
Sending build context to Docker daemon 4.608kB
Step 1/13 : FROM ubuntu:16.04
---> 747cb2d60bbe
Step 2/13 : RUN apt-get update
---> Using cache
---> e016f9b7fa1a
Step 3/13 : RUN apt-get install -y software-properties-common vim
---> Running in b4b898a1195e
Reading package lists...
Building dependency tree...E: Unable to locate package software-properties-common
E: Unable to locate package vim Yeah I do "run apt-get update" before install. Did you do "RUN apt-get update" before install? It looks like you skipped first update. Thank you! I really appreciate.
And there is another problem I got this notation when I build image:
Unable to locate package software-properties-common
Unable to locate package vim
Could you please tell me how to fix it? This builds a python3.6 into your image. When you run a script refer to as "python3.6 xxx.py".
```
FROM ubuntu:16.04
## dependencies
RUN apt-get update
RUN apt-get install -y software-properties-common vim
RUN add-apt-repository ppa:jonathonf/python-3.6
RUN apt-get update
RUN apt-get install -y aptitude libcurl4-openssl-dev libxml2-dev
RUN apt-get install -y build-essential python3.6 python3.6-dev python3-pip python3.6-venv
RUN apt-get install -y git
RUN python3.6 -m pip install pip --upgrade
RUN python3.6 -m pip install wheel
RUN pip3 install numpy
```