do patch ops in dockerfile
All checks were successful
Docker Build and Push / docker (push) Successful in 1m4s

Signed-off-by: Sun Ruoxi <sunruoxi@4paradigm.com>
This commit is contained in:
2026-07-28 14:10:43 +08:00
parent 0c1bb7a415
commit a3c456f29a
3 changed files with 41 additions and 30 deletions

View File

@@ -17,4 +17,7 @@ COPY detect_head_size.py /opt/
COPY patch_ops.py /opt/
COPY patched_ops /opt/patched_ops/
COPY entrypoint.sh /opt/
RUN chmod +x /opt/entrypoint.sh
# 在构建时执行 patch_ops只需要执行一次
RUN python3 /opt/patch_ops.py && \
chmod +x /opt/entrypoint.sh