The build script might produce additional outputs, so let's allow
the user to funnel those out of the container by mounting the staging
directory and setting the OUTPUTDIR environment variable.
"--bind", state.config.build_sources, "/work/src",
"--bind", state.config.build_script, "/work/build-script",
"--bind", state.install_dir, "/work/dest",
+ "--bind", state.staging, "/work/out",
"--chdir", "/work/src",
]
WITH_NETWORK=one_zero(state.config.with_network),
SRCDIR="/work/src",
DESTDIR="/work/dest",
+ OUTPUTDIR="/work/out",
)
if state.config.build_dir is not None: