Use it inside a Docker image building process

We are using this Docker image to provide reverse-proxy for multiple of our sites and apps. Is there some easy way to add let’s encrypt into the image so that sites would have HTTPS automatically? Probably keys have to be stored on a volume to be preserved between container instances/respawning.

So there are automatic configuration builder systems like confd. It would be great to have let’s encrypt be somehow integrated with it.