Hi all,
I'm trying to deploy a model with the azure-cli-ml with the following command:
az ml model deploy --name local-test-endpoint --model name:version --compute-type local --ic inference_config.json --dc deployment_config_local.json -g rg --workspace-name amw
with the following inference configuration:
inference_config.json
{
"entryScript": "score.py",
"environment": {
"docker": {
"arguments": [],
"baseDockerfile": "dockerFile",
"baseImage": null,
"enabled": true,
"sharedVolumes": true,
"shmSize": "2g"
},
"name": "test-environment",
"python": {
"baseCondaEnvironment": null,
"condaDependencies": {
"channels": [
"conda-forge"
],
"dependencies": [
"python=3.7"
],
"name": "project_environment"
},
"condaDependenciesFile": null,
"interpreterPath": "python",
"userManagedDependencies": false
},
"version": "1"
}
}
and this is the dockerFile:
FROM pytorch/pytorch:1.11.0-cuda11.3-cudnn8-runtime
RUN pip install \
'azureml-mlflow==1.37.0' \
'mlflow-skinny' \
'pytorch-accelerated>=0.1.22' \
'torchmetrics>=0.7.2' \
'func_to_script' \
'albumentations==1.1.0' \
'pandas==1.3.4' \
'matplotlib' \
'sklearn'
Running the deploy command I get the following error message:
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
unexpected dockerfile format
failed to run step ID: acb_step_0: failed to scan dependencies: exit status 1
I get the same error even deploying to ACI and AKS.
What am I doing wrong in the configuration?
Thanks!