Skip to content

Commit

Permalink
MG-186: Close tensorflow run layer
Browse files Browse the repository at this point in the history
  • Loading branch information
domenicrosati committed Nov 20, 2017
1 parent 518d256 commit ed2e251
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
FROM python:3.6.3-stretch

RUN echo "deb http://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list \
&& curl https://storage.googleapis.com/bazel-apt/doc/apt-key.pub.gpg | apt-key add - \
&& apt-get -y update \
&& apt-get -y install autoconf-archive automake g++ libtool pkg-config unzip build-essential cmake \
libatlas-base-dev gfortran libgtk2.0-dev libavcodec-dev libavformat-dev libswscale-dev libjpeg-dev libpng-dev \
libtiff-dev libv4l-dev libleptonica-dev openjdk-8-jdk openjdk-8-jre-headless ca-certificates-java \
clang-format-3.8 libcurl4-openssl-dev libtool python-dev python-setuptools python-virtualenv \
python3-dev python3-setuptools zlib1g-dev bazel\
&& pip install numpy==1.13.3 wheel \
&& update-ca-certificates -f
&& curl https://storage.googleapis.com/bazel-apt/doc/apt-key.pub.gpg | apt-key add - \
&& apt-get -y update \
&& apt-get -y install autoconf-archive automake g++ libtool pkg-config unzip build-essential cmake \
libatlas-base-dev gfortran libgtk2.0-dev libavcodec-dev libavformat-dev libswscale-dev libjpeg-dev libpng-dev \
libtiff-dev libv4l-dev libleptonica-dev openjdk-8-jdk openjdk-8-jre-headless ca-certificates-java \
clang-format-3.8 libcurl4-openssl-dev libtool python-dev python-setuptools python-virtualenv \
python3-dev python3-setuptools zlib1g-dev bazel\
&& pip install numpy==1.13.3 wheel \
&& update-ca-certificates -f

# install tensorflow from sources
RUN curl -sSL https://github.com/tensorflow/tensorflow/archive/r1.4.zip -o tensorflow.zip \
&& unzip -q tensorflow.zip && mv /tensorflow-r1.4 /tensorflow && rm tensorflow.zip

RUN cd tensorflow \
&& unzip -q tensorflow.zip && mv /tensorflow-r1.4 /tensorflow && rm tensorflow.zip
&& cd tensorflow \
&& tensorflow/tools/ci_build/builds/configured CPU \
&& touch WORKSPACE \
&& echo "startup --batch\nbuild --spawn_strategy=standalone --genrule_strategy=standalone" >>/etc/bazel.bazelrc \
Expand Down Expand Up @@ -62,7 +61,7 @@ RUN cd / \

# clean up
RUN apt-get -y remove --purge autoconf-archive automake g++ libtool unzip build-essential cmake pkg-config \
libatlas-base-dev gfortran libgtk2.0-dev libavcodec-dev libavformat-dev libswscale-dev \
libjpeg-dev libpng-dev libtiff-dev libv4l-dev libcurl4-openssl-dev libtool zlib1g-dev\
libatlas-base-dev gfortran libgtk2.0-dev libavcodec-dev libavformat-dev libswscale-dev \
libjpeg-dev libpng-dev libtiff-dev libv4l-dev libcurl4-openssl-dev libtool zlib1g-dev\
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

0 comments on commit ed2e251

Please sign in to comment.