On the original github pr #59841 user fayak kindly informed us that the
--volume option was not supported by docker build. Since this section
was a leftover from a previous way of constructing the builder image and
was no longer needed we simply removed it.
Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit
612a9d6808f4f1d4f93aeca055acba064e7a1209)
f"--volume={ctx.dnf_cache_dir}:/var/cache/dnf:Z",
"--build-arg=CLEAN_DNF=no",
]
- if ctx.cli.homedir:
- cwd = pathlib.Path(".").absolute()
- cmd.append(f"--volume={cwd}:{ctx.cli.homedir}:Z")
cmd += ["-f", ctx.cli.containerfile, ctx.cli.containerdir]
with ctx.user_command():
_run(cmd, check=True, ctx=ctx)