IssueRaiser

Dockerfile support for ENVFILE ./.env?

duplicates / duplicated by: - https://github.com/moby/moby/issues/7688 - https://github.com/moby/moby/issues/28617 Looked around a bunch but can't find how to do this: ``` ENVFILE ./env ``` If that's not possible, is there a workaround to build a docker image that will contain all those environment variables when run? I see that there's a way to do it when you start a container with docker-run, but I'd like to be able to do it when I build the image.

Posted by matthewmueller on Nov 19, 2016, 5:59 AM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.4,500 issues0 comments

support (Software)

Dockerfile support for ENVFILE ./.env?

matthewmuellerNov 19, 2016, 5:59 AM

duplicates / duplicated by: - https://github.com/moby/moby/issues/7688 - https://github.com/moby/moby/issues/28617 Looked around a bunch but can't find how to do this: ``` ENVFILE ./env ``` If that's not possible, is there a workaround to build a docker image that will contain all those environment variables when run? I see that there's a way to do it when you start a container with docker-run, but I'd like to be able to do it when I build the image.

Comments (0)

No comments yet. Start the discussion.

Comment on this issue