fix(build): install gcc + ninja-build before compilation

Docker build fails if base image lacks gcc (needed for ex_registry.c)
and ninja (needed for torch.utils.cpp_extension). Install both in a
dedicated RUN layer before build.sh and patch_ops.sh.
This commit is contained in:
project6
2026-08-10 08:18:45 +00:00
parent b869eddbb4
commit cd61968f01

View File

@@ -7,6 +7,10 @@ COPY ./qwen3_6_scripts /workspace/qwen3_6_scripts
COPY ./computility-run.yaml /workspace/computility-run.yaml
COPY ./ex_engine /workspace/ex_engine
RUN apt-get update -qq && \
apt-get install -y -qq gcc ninja-build && \
rm -rf /var/lib/apt/lists/*
RUN chmod +x /workspace/ex_engine/build.sh && \
bash /workspace/ex_engine/build.sh --corex