diff --git a/servers/mlflowserver/models/elasticnet_wine/Makefile b/servers/mlflowserver/models/elasticnet_wine/Makefile index d992842706..41f31d52d7 100644 --- a/servers/mlflowserver/models/elasticnet_wine/Makefile +++ b/servers/mlflowserver/models/elasticnet_wine/Makefile @@ -17,7 +17,8 @@ collect: find ./mlruns -name "MLmodel" -type f -exec cp {} ./output \; find ./mlruns -name "conda.yaml" -type f -exec cp {} ./output \; find ./mlruns -name "model.pkl" -type f -exec cp {} ./output \; - conda env create --force -p ./.inference-env -f ./output/conda.yaml + rm -rf ./.inference-env && mkdir -p ./.inference-env + conda env create -p ./.inference-env -f ./output/conda.yaml ./.inference-env/bin/pip install mlserver[all] mlserver-mlflow ./.env/bin/conda-pack -p ./.inference-env -f -o output/environment.tar.gz