From 95db89ad74dc0487a02f066ae6f28b16f2748211 Mon Sep 17 00:00:00 2001 From: Derrick Miller Date: Tue, 3 Mar 2020 10:41:38 -0600 Subject: [PATCH] Update Dockerfile ENTRYPOINT to use /usr/local/bin/python (#744) Base image `FROM tensorflow/tensorflow:1.15.2-py3` uses python3 and therefore the python binary location is `/usr/bin/python3`. However, [tensorflow base image creates a symlink](https://github.com/tensorflow/tensorflow/blob/e5bf8de410005de06a7ff5393fafdf832ef1d4ad/tensorflow/tools/dockerfiles/dockerfiles/cpu.Dockerfile#L45) to the current python binary as `/usr/local/bin/python` regardless if that is python version 2 or version 3, so that binary location should be used in the *ENTRYPOINT* of the `Dockerfile.model` instead of `/usr/bin/python` which is customary for Python v2.x installations. --- mnist/Dockerfile.model | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mnist/Dockerfile.model b/mnist/Dockerfile.model index e3a5de54..bf716d7e 100644 --- a/mnist/Dockerfile.model +++ b/mnist/Dockerfile.model @@ -5,5 +5,5 @@ FROM tensorflow/tensorflow:1.15.2-py3 ADD model.py /opt/model.py RUN chmod +x /opt/model.py -ENTRYPOINT ["/usr/bin/python"] +ENTRYPOINT ["/usr/local/bin/python"] CMD ["/opt/model.py"]