Adding the following in the docker file (or settings, or whatever) fixes this. This, of course, needs to be in the FROM base AS final section
    ASPNETCORE_URLS=http://+:8080
I presume a pure function app created via a VS template doesn't set this, whereas a web app does.