New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for .env files #179
Comments
this aligns well with docker-compose local dev, as it's a common pattern to supply a |
Indeed - we've been debating whether to support this because we have upcoming cloud-based features that serve the same use-case. But I think it's still worth doing it, as not everyone will be comfortable with hosting secrets outside their own environment. |
This will go in next week's release, @zenyui |
@vladaionescu what is the implication of copying a potentially secret environment variable from .env to the build args? Do those build args not show up in the image history or similar? What's the motivation for copying to both build args and secrets? |
The build args only show up in the history if they are declared as such via |
Might I add that using |
A feature request is the support for
.env
files (similar to how compose uses them https://docs.docker.com/compose/env-file/).It might work like this: if anload the vars and pass them to the build as both build-args AND secrets. EDIT: Using the.env
file is present in the current dir, or any dir above the current dir (dirs closer to current dir have higher precendence),.env
in the current dir only seems to be the the behavior most similar to how other tools work.CC @zenyui
The text was updated successfully, but these errors were encountered: