mirror of
https://github.com/containers/podman.git
synced 2025-06-24 19:42:56 +08:00
Merge pull request #5080 from openSUSE/containerfile-context-fix
Fix wrong Containerfile location on build
This commit is contained in:
@ -234,10 +234,6 @@ func buildCmd(c *cliconfig.BuildValues) error {
|
||||
return errors.Wrapf(err, "error determining path to file %q", containerfiles[i])
|
||||
}
|
||||
contextDir = filepath.Dir(absFile)
|
||||
containerfiles[i], err = filepath.Rel(contextDir, absFile)
|
||||
if err != nil {
|
||||
return errors.Wrapf(err, "error determining path to file %q", containerfiles[i])
|
||||
}
|
||||
break
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user