.net core web api app with https in docker

I have the simplest possible Web Api app in .net core ( with the default api/values api you get upon creation)

I’ve enabled HTTPS so in debug it works, and kestrel reports:

Hosting environment: Development
Now listening on: https://localhost:5001
Now listening on: http://localhost:5000

When I run the app in docker (using the MS provided dockerfile), kestrel reports that it only listens on port 80

Hosting environment: Production
Now listening on: http://[::]:80

How to configure the app to listen on https as well in docker?

Source: StackOverflow