Add a comment for how the Dockerfile path is resolved.
@@ -128,6 +128,10 @@ impl<'a> Dockerfile<'a> {
}
}
+ // note that this is always relative to the PWD: if we have
+ // `$workspace_root/Dockerfile`, then running a build
+ // `PWD=$workspace_root/src/ cross build` would require
+ // the Dockerfile path to be specified as `../Dockerfile`.
docker_build.args(["--file".into(), path]);
if let Some(build_opts) = options.config.build_opts() {
