From e78a52217d57e0d1f1ce2bc6a5c568f3774520a1 Mon Sep 17 00:00:00 2001 From: gabrieldemarmiesse Date: Thu, 6 Feb 2020 22:46:06 +0000 Subject: [PATCH] Don't download tensorflow multiple times. Better use of the docker cache. --- tools/docker/sanity_check.Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/docker/sanity_check.Dockerfile b/tools/docker/sanity_check.Dockerfile index ed700b4979..0b3afc2e73 100644 --- a/tools/docker/sanity_check.Dockerfile +++ b/tools/docker/sanity_check.Dockerfile @@ -20,7 +20,9 @@ RUN touch /ok.txt # Check that the public API is typed FROM python:3.5 -RUN pip install tensorflow-cpu==2.1.0 typeguard==2.7.1 +RUN pip install tensorflow-cpu==2.1.0 +RUN pip install typeguard==2.7.1 + COPY ./ /addons RUN TF_ADDONS_NO_BUILD=1 pip install --no-deps -e /addons RUN python /addons/tools/ci_build/verify/check_typing_info.py @@ -39,12 +41,12 @@ RUN touch /ok.txt # Valid build files FROM python:3.5 +RUN pip install tensorflow-cpu==2.1.0 + RUN apt-get update && apt-get install sudo RUN git clone https://github.com/abhinavsingh/setup-bazel.git RUN bash ./setup-bazel/setup-bazel.sh 1.1.0 -RUN pip install tensorflow-cpu==2.1.0 - COPY ./ /addons WORKDIR /addons RUN python ./configure.py --no-deps