Commit d35c3b4
feat(gpu): add ccache and layer splitting for faster builds
Port build speed improvements from PR OpenDroneMap#1959 to gpu.Dockerfile:
- Add ccache (CC/CXX/CCACHE_DIR env vars + apt install)
- Split COPY commands so system deps and SuperBuild compile layers
are cached independently from application code changes
- Use RUN --mount=type=cache for the cmake/make step
- Copy docker/ early since PORTABLE_INSTALL needs the gcc/g++ wrappers
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 8e54843 commit d35c3b4
1 file changed
+25
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
11 | | - | |
12 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
13 | 27 | | |
14 | | - | |
15 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
16 | 36 | | |
17 | 37 | | |
18 | 38 | | |
| |||
0 commit comments