如何在Docker容器中不安装shell的情况下inheritance环境variables?

我的Dockerfile看起来像这样

 FROM scratch ADD ca-certificates.crt /etc/ssl/certs/ ADD HelloWorldOnce /HelloWorldOnce CMD ["/HelloWorldOnce"] 

但是,我的应用程序,名为HelloWorldOnce的二进制文件需要一些环境variables。 在rkt我会使用--inherit-env参数和主机的参数将被复制…在docker我只限于-e--env-file

当我运行下面的命令命令应用程序似乎并没有得到参数。

 docker run --env-file=/home/me/auth.env -ti --name HelloWorldOnce me/helloworldonce 

二进制从命令行运行并运行在rkt。 我的猜测是inheritancevariables需要一个shell。