You can use Azure CLI’s ACR build command to build a container image without needing a local Docker installed. This command uploads the files, builds the image in the server and pushes the image to the defined registry.
az acr build \
--registry $ACR_NAME \
--image inference-api:v1.0.0 \
./api