-
Notifications
You must be signed in to change notification settings - Fork 618
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support build args without explicit value
When a build arg key is specified without an explicit value, the value should be taken from the corresponding environment variable on the host [1]. When the corresponding environment variable on the host is unset, the build arg should be ignored [2] to avoid masking a possible default value specified in the Dockerfile [3]. To pass an empty string as build arg, use the form "VAR=" on the CLI/as an environment variable. [1]: https://docs.docker.com/engine/reference/commandline/build/#set-build-time-variables---build-arg [2]: https://docs.docker.com/engine/reference/commandline/run/#set-environment-variables--e---env---env-file [3]: moby/moby#24101 Signed-off-by: Caleb Xu <[email protected]>
- Loading branch information
Showing
3 changed files
with
86 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters