From e7492f7fe197aa5cd1b472be13c0b381bfbb0729 Mon Sep 17 00:00:00 2001 From: Putu Widyantara Artanta Wibawa Date: Mon, 18 Dec 2023 12:20:15 +0800 Subject: [PATCH] [build] change cmd from shell to exec form --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2fa3252..b80f5be 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"]