|
1 | 1 | # TensorPy Docker Image |
2 | | -FROM ubuntu:15.10 |
| 2 | +FROM ubuntu:17.10 |
3 | 3 |
|
4 | | -#======================================= |
5 | | -# Install Python and Basic Python Tools |
6 | | -#======================================= |
7 | | -RUN apt-get update && apt-get install -y python python-pip python-setuptools \ |
8 | | - python-dev python-distribute python-virtualenv |
| 4 | +#================================ |
| 5 | +# Update apt-get package sources |
| 6 | +#================================ |
| 7 | +RUN apt-get update |
9 | 8 |
|
10 | | -#========================================= |
11 | | -# Install Bash Command Line Tools and Git |
12 | | -#========================================= |
| 9 | +#================================================== |
| 10 | +# Install Bash Command Line Tools, Python, and Git |
| 11 | +#================================================== |
13 | 12 | RUN apt-get -qy --no-install-recommends install \ |
| 13 | + python \ |
| 14 | + python-dev \ |
| 15 | + python-pip \ |
| 16 | + python-distribute \ |
| 17 | + python-virtualenv \ |
| 18 | + python-setuptools \ |
14 | 19 | sudo \ |
15 | 20 | unzip \ |
16 | 21 | wget \ |
17 | 22 | curl \ |
| 23 | + libxi6 \ |
| 24 | + libgconf-2-4 \ |
18 | 25 | vim \ |
19 | 26 | git-core \ |
20 | 27 | && rm -rf /var/lib/apt/lists/* |
21 | 28 |
|
22 | | -#======================================== |
23 | | -# Add normal user with passwordless sudo |
24 | | -#======================================== |
25 | | -RUN sudo useradd seluser --shell /bin/bash --create-home \ |
26 | | - && sudo usermod -a -G sudo seluser \ |
27 | | - && echo 'ALL ALL = (ALL) NOPASSWD: ALL' >> /etc/sudoers |
28 | | - |
29 | | -#============================== |
30 | | -# Locale and encoding settings |
31 | | -#============================== |
32 | | -ENV LANGUAGE en_US.UTF-8 |
33 | | -ENV LANG ${LANGUAGE} |
34 | | -RUN locale-gen ${LANGUAGE} \ |
35 | | - && dpkg-reconfigure --frontend noninteractive locales |
36 | | - |
37 | 29 | #============================== |
38 | 30 | # Set up TensorFlow / TensorPy |
39 | 31 | #============================== |
40 | | -COPY third_party/docker/docker_install.sh /TensorPy/docker_install.sh |
| 32 | +COPY install.sh /TensorPy/install.sh |
41 | 33 | COPY requirements.txt /TensorPy/ |
42 | 34 | COPY setup.py /TensorPy/ |
43 | 35 | COPY tensorpy /TensorPy/tensorpy/ |
44 | 36 | COPY examples /TensorPy/examples/ |
45 | | -COPY third_party/docker /TensorPy/third_party/docker/ |
46 | | -COPY third_party/docker/run_docker_test.sh /TensorPy/ |
47 | | -RUN cd /TensorPy && ls && ./third_party/docker/docker_install.sh |
| 37 | +COPY integrations/docker/run_docker_test.sh /TensorPy/ |
| 38 | +RUN cd /TensorPy && ls && ./install.sh |
48 | 39 | RUN cd /TensorPy && pip install -r requirements.txt |
49 | 40 |
|
50 | 41 | #=================== |
51 | 42 | # Create entrypoint |
52 | 43 | #=================== |
53 | | -COPY third_party/docker/docker-entrypoint.sh / |
| 44 | +COPY integrations/docker/docker-entrypoint.sh / |
54 | 45 | ENTRYPOINT ["/docker-entrypoint.sh"] |
55 | 46 | CMD ["/bin/bash"] |
0 commit comments