PSA: Don't do this. Secrets don't belong in docker images, they belong in proper secret management tools.
even if you use a secrets management tool, there are very few (probably none) that can bootstrap a Letsencrypt api. So this new one makes that possible as well.
to setup the nginx on my host, i would still have to store the certificates somewhere right.
Docker is not what is making this thing complicated.