Signed-off-by: Zack Cerza <zack@cerza.org>
cmd.append("--pids-limit=-1")
if ctx.map_user:
cmd.append("--user=0")
+ if ctx.cli.env_file:
+ cmd.append(f"--env-file={ctx.cli.env_file.absolute()}")
if workdir:
cmd.append(f"--workdir={workdir}")
cwd = pathlib.Path(".").absolute()
choices=build_step_names,
help="Execute the target build step(s)",
)
+ parser.add_argument(
+ "--env-file",
+ type=pathlib.Path,
+ help="Use this environment file when building",
+ )
parser.add_argument(
"--dry-run",
action="store_true",