Skip to content

Commit fad1301

Browse files
committed
Add a comment for how the Dockerfile path is resolved.
1 parent ab99baf commit fad1301

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/docker/custom.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,10 @@ impl<'a> Dockerfile<'a> {
128128
}
129129
}
130130

131+
// note that this is always relative to the PWD: if we have
132+
// `$workspace_root/Dockerfile`, then running a build
133+
// `PWD=$workspace_root/src/ cross build` would require
134+
// the Dockerfile path to be specified as `../Dockerfile`.
131135
docker_build.args(["--file".into(), path]);
132136

133137
if let Some(build_opts) = options.config.build_opts() {

0 commit comments

Comments
 (0)