Skip to content

Commit 1c07333

Browse files
Don't download tensorflow multiple times. (#1036)
Better use of the docker cache.
1 parent d56c3dd commit 1c07333

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tools/docker/sanity_check.Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ RUN touch /ok.txt
2020
# Check that the public API is typed
2121
FROM python:3.5
2222

23-
RUN pip install tensorflow-cpu==2.1.0 typeguard==2.7.1
23+
RUN pip install tensorflow-cpu==2.1.0
24+
RUN pip install typeguard==2.7.1
25+
2426
COPY ./ /addons
2527
RUN TF_ADDONS_NO_BUILD=1 pip install --no-deps -e /addons
2628
RUN python /addons/tools/ci_build/verify/check_typing_info.py
@@ -39,12 +41,12 @@ RUN touch /ok.txt
3941
# Valid build files
4042
FROM python:3.5
4143

44+
RUN pip install tensorflow-cpu==2.1.0
45+
4246
RUN apt-get update && apt-get install sudo
4347
RUN git clone https://github.com/abhinavsingh/setup-bazel.git
4448
RUN bash ./setup-bazel/setup-bazel.sh 1.1.0
4549

46-
RUN pip install tensorflow-cpu==2.1.0
47-
4850
COPY ./ /addons
4951
WORKDIR /addons
5052
RUN python ./configure.py --no-deps

0 commit comments

Comments
 (0)