Skip to content

Files

Latest commit

 

History

History

azure.durable.function.docker

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Run a .NET Core Azure Durable Function in a Container

Build the dotnet core project

dotnet build -o .\wwwroot\bin\

Build the docker image

docker build --build-arg STORAGE_ACCOUNT='[Storage Account Connection String]' -t durable .

Run the Azure Durable Functions in a container

docker run -it -p 5000:80 durable

Start the Azure Durable Function

curl -X POST http://localhost:5000/api/orchestrators/orchestrator -i -H "Content-Length: 0"

To Debug on localhost

npm install -g azure-functions-core-tools@core
cd wwwroot
func start --debug VSCode