From 8b9576c8414045f33794c2b5e83ab7e0618f608b Mon Sep 17 00:00:00 2001 From: Cyprien Date: Mon, 19 Sep 2022 12:29:43 +0200 Subject: [PATCH 1/2] Update build.dockerfile Hi, It looked like the for-loop used for installing tensorflow and dependencies for each requested python versions didn't point to a valid command. I've replaced each `$python ...` with `python${python} ...`. Thanks, Cyprien. --- docker/build.dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docker/build.dockerfile b/docker/build.dockerfile index 29457d6..128f0b7 100644 --- a/docker/build.dockerfile +++ b/docker/build.dockerfile @@ -73,10 +73,10 @@ ARG pip_dependencies=' \ portpicker' RUN for python in ${python_version}; do \ - $python get-pip.py && \ - $python -mpip uninstall -y tensorflow tensorflow-gpu tf-nightly tf-nightly-gpu && \ - $python -mpip --no-cache-dir install ${tensorflow_pip} --upgrade && \ - $python -mpip --no-cache-dir install $pip_dependencies; \ + python${python} get-pip.py && \ + python${python} -mpip uninstall -y tensorflow tensorflow-gpu tf-nightly tf-nightly-gpu && \ + python${python} -mpip --no-cache-dir install ${tensorflow_pip} --upgrade && \ + python${python} -mpip --no-cache-dir install $pip_dependencies; \ done RUN rm get-pip.py From b74da76856f304ad0ebe2c000801b002e04ca110 Mon Sep 17 00:00:00 2001 From: Cyprien Date: Mon, 19 Sep 2022 12:36:01 +0200 Subject: [PATCH 2/2] Update build.dockerfile --- docker/build.dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/build.dockerfile b/docker/build.dockerfile index 128f0b7..c77e561 100644 --- a/docker/build.dockerfile +++ b/docker/build.dockerfile @@ -9,7 +9,7 @@ LABEL maintainer="no-reply@google.com" ARG cpu_base_image="tensorflow/build:latest-python3.7" ARG base_image=$cpu_base_image ARG tensorflow_pip="tf-nightly" -ARG python_version="python3.7" +ARG python_version="3.7" ARG APT_COMMAND="apt-get -o Acquire::Retries=3 -y" # Stops tzdata from asking about timezones and blocking install on user input.