{
  "stage": "build",
  "command": [
    "docker",
    "run",
    "--rm",
    "--name",
    "contextra-awiros-build-r01",
    "--pull=never",
    "--network=none",
    "--cpus=4",
    "--memory=12g",
    "--memory-swap=12g",
    "--pids-limit=256",
    "--cap-drop=ALL",
    "--security-opt=no-new-privileges",
    "--mount",
    "type=bind,source=/data/contextra/model-artifacts/awiros-person-head-r01,target=/work",
    "--mount",
    "type=bind,source=/data/contextra/model-artifacts/awiros-person-head-r01/source,target=/work/source,readonly",
    "--mount",
    "type=bind,source=/data/contextra/model-artifacts/tool-envs/medium-193-20260909,target=/envroot,readonly",
    "-e",
    "OMP_NUM_THREADS=4",
    "-e",
    "OPENBLAS_NUM_THREADS=1",
    "-e",
    "MKL_NUM_THREADS=4",
    "-e",
    "TMPDIR=/work/tmp",
    "-e",
    "HF_HOME=/work/cache",
    "-e",
    "XDG_CACHE_HOME=/work/cache",
    "-w",
    "/work",
    "--gpus=device=0",
    "--entrypoint",
    "/usr/bin/trtexec",
    "sha256:62941207fb0ae9e750f7bbc96862fef38a911d26ab7c5d88a1e8e917f504cad1",
    "--onnx=/work/onnx/rfdetr-small.onnx",
    "--saveEngine=/work/engine/model.plan",
    "--fp16",
    "--inputIOFormats=fp16:chw",
    "--outputIOFormats=fp32:chw,fp32:chw",
    "--minShapes=input:1x3x512x512",
    "--optShapes=input:4x3x512x512",
    "--maxShapes=input:4x3x512x512",
    "--memPoolSize=workspace:1024",
    "--skipInference",
    "--profilingVerbosity=detailed"
  ],
  "timeout_seconds": 900
}