File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -241,8 +241,13 @@ Learn more about the built-in build arguments in the [Dockerfile reference docs]
241241--build-context=name=VALUE
242242```
243243
244- Define additional build context with specified contents. In Dockerfile the context can be accessed when ` FROM name ` or ` --from=name ` is used.
245- When Dockerfile defines a stage with the same name it is overwritten.
244+ Define additional build context with specified contents.
245+
246+ In a Dockerfile:
247+
248+ - the context can be accessed when ` FROM name ` or ` --from=name ` is used
249+ - the context overrides a stage called ` name ` when used as ` FROM ... AS name `
250+ - the context overrides a ` #syntax ` directive when used as ` #syntax=name `
246251
247252The value can be a:
248253
You can’t perform that action at this time.
0 commit comments