Added a period after the docker build command
docker requires a reference to the directory that the Dockerfile is in. "." represents the current directory in this example. Without the period it will result in the following error: "docker build" requires exactly 1 argument.
This commit is contained in:
Родитель
b65b2ec71d
Коммит
f3d065d9d8
|
@ -120,10 +120,10 @@ docker login
|
|||
```
|
||||
3. Now use the following command to build the container with the Function App in it. The myfunctionapp:v1 represents the name of the container and the tag (v1):
|
||||
```
|
||||
docker build -t myfunctionapp:v1
|
||||
docker build -t myfunctionapp:v1 .
|
||||
```
|
||||
The Function App should build and the container should be created now. With this last step, we've made sure that the Function compiles into a container.
|
||||
|
||||
#### Conclusion
|
||||
|
||||
In this post, we've created a containerized [Azure Function](https://azure.microsoft.com/services/functions?WT.mc_id=docs-azuredevtips-azureappsdev) App with a queue-based trigger in it, on our local machine using the [Azure CLI](https://docs.microsoft.com/cli/azure/?WT.mc_id=docs-azuredevtips-azureappsdev) and the [Azure Functions Core Tools](https://docs.microsoft.com/azure/azure-functions/functions-run-local?WT.mc_id=azure-azuredevtips-azureappsdev). In the next post, we'll deploy the container with the Azure Function in it to [Azure Kubernetes Service](https://azure.microsoft.com/services/kubernetes-service?WT.mc_id=docs-azuredevtips-azureappsdev) and run it at scale with [KEDA](https://keda.sh?WT.mc_id=other-azuredevtips-azureappsdev).
|
||||
In this post, we've created a containerized [Azure Function](https://azure.microsoft.com/services/functions?WT.mc_id=docs-azuredevtips-azureappsdev) App with a queue-based trigger in it, on our local machine using the [Azure CLI](https://docs.microsoft.com/cli/azure/?WT.mc_id=docs-azuredevtips-azureappsdev) and the [Azure Functions Core Tools](https://docs.microsoft.com/azure/azure-functions/functions-run-local?WT.mc_id=azure-azuredevtips-azureappsdev). In the next post, we'll deploy the container with the Azure Function in it to [Azure Kubernetes Service](https://azure.microsoft.com/services/kubernetes-service?WT.mc_id=docs-azuredevtips-azureappsdev) and run it at scale with [KEDA](https://keda.sh?WT.mc_id=other-azuredevtips-azureappsdev).
|
||||
|
|
Загрузка…
Ссылка в новой задаче