Last active
September 23, 2020 16:08
-
-
Save ClementWalter/fd1bfd830e9acbdeccf7671b0d244292 to your computer and use it in GitHub Desktop.
Tf servint Heroku dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM tensorflow/serving | |
ENV MODEL_BASE_PATH /models | |
ENV MODEL_NAME classifier | |
COPY models/classifier /models/classifier | |
# Fix because base tf_serving_entrypoint.sh does not take $PORT env variable while $PORT is set by Heroku | |
# CMD is required to run on Heroku | |
COPY tf_serving_entrypoint.sh /usr/bin/tf_serving_entrypoint.sh | |
RUN chmod +x /usr/bin/tf_serving_entrypoint.sh | |
ENTRYPOINT [] | |
CMD ["/usr/bin/tf_serving_entrypoint.sh"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment