[build] add .dockerignore to slim the Docker build context · NeuroJSON/siamize@c12d82d · GitHub
Skip to content

Commit c12d82d

Browse files
fangqclaude
andcommitted
[build] add .dockerignore to slim the Docker build context
`COPY . /src` shipped the whole repo as build context (~2 GB of untracked scratch: fold_*.mnn, *.nii.gz, output.jnii, host build/ and third_party/ trees). The image fetches its own ORT + MNN and compiles from src/, so none of that is needed. Excluding it drops the context from ~2 GB to ~340 kB. Deliberately no blanket *.txt rule (would drop CMakeLists.txt). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 1f2e53f commit c12d82d

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

‎.dockerignore‎

Lines changed: 36 additions & 0 deletions

0 commit comments

Comments
 (0)