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](e5bf8de410/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.
This commit is contained in:
Derrick Miller 2020-03-03 10:41:38 -06:00 committed by GitHub
parent 7589c004d7
commit 95db89ad74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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"]