From 001e7f9cc4e7220cc06fb44e7387331a90f5e597 Mon Sep 17 00:00:00 2001 From: Krithika Sundararajan Date: Sun, 10 Sep 2023 08:42:26 +0800 Subject: [PATCH] Activate conda env before running pyfunc server --- engines/pyfunc-ensembler-service/app.Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engines/pyfunc-ensembler-service/app.Dockerfile b/engines/pyfunc-ensembler-service/app.Dockerfile index 8cdfe960d..f9eb18a70 100644 --- a/engines/pyfunc-ensembler-service/app.Dockerfile +++ b/engines/pyfunc-ensembler-service/app.Dockerfile @@ -10,8 +10,8 @@ ARG GOOGLE_APPLICATION_CREDENTIALS RUN if [[-z "$GOOGLE_APPLICATION_CREDENTIALS"]]; then gcloud auth activate-service-account --key-file=${GOOGLE_APPLICATION_CREDENTIALS}; fi RUN gsutil -m cp -r ${MODEL_URL} . -RUN /bin/bash -c ". activate ${CONDA_ENV_NAME} && \ - conda env update --name ${CONDA_ENV_NAME} --file ./${FOLDER_NAME}/conda.yaml" +RUN /bin/bash -c "conda env update --name ${CONDA_ENV_NAME} --file ./${FOLDER_NAME}/conda.yaml" SHELL ["/bin/bash", "-c"] -ENTRYPOINT python -m pyfunc_ensembler_runner --mlflow_ensembler_dir ./${FOLDER_NAME} -l INFO +ENTRYPOINT . activate ${CONDA_ENV_NAME} && \ + python -m /pyfunc_ensembler_runner --mlflow_ensembler_dir ./${FOLDER_NAME} -l INFO