When trying to invoke an Azure Function wrapped in a Docker container all I get is an internal server error 500.
Here is what I did to create my container:
mkdir docker-function
cd docker function
func init --docker
func new (I then selected Http Trigger)
docker build -t hello-docker-function:latest .
docker tag hello-docker-function myaccount/hello-docker-function
docker push myaccount/hello-docker-function:latest
I then created an Azure Function in US Central, selected Docker (on Linux).
I then clicked Configure container settings
.
As Image source
I selected Docker Hub
As Repository Access
I selected Public
As Image
I specified myaccount/hello-docker-function
I did not specify any kind of Startup file
When invoking the function (via its URL or via the Run
button) all I get is an internal server error 500.
I also tried with the Azure Container Registry - same result.
Any idea?