az acr 构建需要 <SOURCE_LOCATION> 参数

Vik*_*tor 5 azure azure-container-registry

我正在按照官方文档中的说明进行操作

执行命令时:

az acr build --registry <container_registry_name> --image webimage
Run Code Online (Sandbox Code Playgroud)

我正在接收

需要以下参数:<SOURCE_LOCATION>

但根据文档,<SOURCE_LOCATION> 不是必需参数。

有人遇到过这样的案例吗?

Vik*_*tor 8

我转到应用程序的根文件夹,并在命令末尾添加了一个点。通过这种方式,我传递了代码所在的位置(<SOURCE_LOCATION>)。

az acr build --registry <container_registry_name> --image webimage .
Run Code Online (Sandbox Code Playgroud)