failed to deploy ML pipeline to docker and railway

annisamufidatun1TRIAL

10 months ago

when i want to deploy my docker, here's the result. Here's what inside my docker file

FROM tensorflow/serving:latest

COPY ./output/serving_model /models/cc-model
ENV MODEL_NAME=cc-model
ENV PORT=8501

RUN echo '#!/bin/bash \n\n\
env \n\
tensorflow_model_server --port=8500 --rest_api_port=${PORT} \
--model_name=${MODEL_NAME} --model_base_path=${MODEL_BASE_PATH}/${MODEL_NAME} \
"$@"' > /usr/bin/tf_serving_entrypoint.sh \
&& chmod +x /usr/bin/tf_serving_entrypoint.sh  

I build the pipeline with conda env and i run command "docker build -t cc-prediction-tf-serving ."

Please help me. Thank you

1 Replies

10 months ago