-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Description
Is this a docs issue?
- My issue is about the documentation content or website
Type of issue
Other
Description
In the former case, the whole path is used as a Docker context to execute a Docker build, looking for a canonical Dockerfile at the root of the directory. The path can be absolute or relative. If it is relative, it is resolved from the directory containing your Compose file. If it is absolute, the path prevents the Compose file from being portable so Compose displays a warning.
In the latter case, build arguments can be specified, including an alternate Dockerfile location. The path can be absolute or relative. If it is relative, it is resolved from the directory containing your Compose file. If it is absolute, the path prevents the Compose file from being portable so Compose displays a warning.
Repeated text in the docs, can make reading experience kind of ambiguous.
Location
https://docs.docker.com/reference/compose-file/build/
Suggestion
Just redact the repeated text to appear only once