env > envfile, cp/mount it to the container, and source that file inside the container.
env > envfile