Skip to content

Commit

Permalink
[build] change cmd from shell to exec form
Browse files Browse the repository at this point in the history
  • Loading branch information
putuwaw committed Dec 18, 2023
1 parent 08d4564 commit e7492f7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
FROM tensorflow/serving:2.14.0

ENV MODEL_NAME=food_clf
ENV MODEL_BASE_PATH=/models
ENV TF_CPP_VMODULE=http_server=1

COPY /model /models/${MODEL_NAME}/1/

CMD tensorflow_model_server --rest_api_port=8501 --model_name=${MODEL_NAME} --model_base_path=/${MODEL_BASE_PATH}/${MODEL_NAME}
CMD ["tensorflow_model_server", "--rest_api_port=8501", "--model_name=food_clf", "--model_base_path=/models/food_clf"]

0 comments on commit e7492f7

Please sign in to comment.