forked from ArduPilot/redtail
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathtf1.5.Dockerfile
61 lines (50 loc) · 1.67 KB
/
tf1.5.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
FROM nvidia/cudagl:9.0-devel-ubuntu16.04
# Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
# Full license terms provided in LICENSE.md file.
# Build with:
# docker build -t nvidia-redtail-tf:1.5 -f tf1.5.Dockerfile .
ENV HOME /root
WORKDIR ${HOME}
RUN apt-get update && apt-get -y --no-install-recommends install software-properties-common \
&& add-apt-repository ppa:ubuntu-toolchain-r/test
# REVIEW alexeyk: libcudnn7=7.0.5.15 fixes the problem with TF 1.5 built against cuDNN 7.0 while recent version of the image has 7.1.
# https://github.com/tensorflow/tensorflow/issues/17566
RUN apt-get update && apt-get -y --no-install-recommends install \
curl \
git \
gosu \
libgtk2.0-dev \
libjpeg-dev \
libpng-dev \
iproute \
iputils-ping \
less \
libasound2 \
libx11-xcb-dev \
libxss1 \
libcudnn7=7.0.5.15-1+cuda9.0 libcudnn7-dev=7.0.5.15-1+cuda9.0 \
mc \
nano \
net-tools \
patch \
pkg-config \
protobuf-compiler \
rsync \
sudo \
unzip \
wget \
zip \
&& apt-get -y autoremove \
&& apt-get clean autoclean \
# cleanup
&& rm -rf /var/lib/apt/lists/{apt,dpkg,cache,log} /tmp/* /var/tmp/*
# Anaconda
WORKDIR ${HOME}
RUN wget --quiet https://repo.continuum.io/archive/Anaconda3-5.0.0.1-Linux-x86_64.sh \
&& chmod +x ./Anaconda3-5.0.0.1-Linux-x86_64.sh \
&& ./Anaconda3-5.0.0.1-Linux-x86_64.sh -b
ENV PATH ${HOME}/anaconda3/bin:${PATH}
# TensorFlow conda environment setup.
COPY ./scripts/install_tensorflow.sh ${HOME}
RUN ${HOME}/install_tensorflow.sh
WORKDIR ${HOME}