zebra/docker
Gustavo Valverde d31eea5f64
ref(docker): use cache mounts for build cache (#8796)
* ref(docker): leverage cache mount with bind mounts

This update eliminates the need for external tools like `cargo-chef` to leverage caching layers, resulting in an average build time reduction of 4m30s (~36% improvement).

While this solution doesn't fully resolve the issues mentioned in https://github.com/ZcashFoundation/zebra/issues/6169#issuecomment-1712776391, it represents the best possible approach without resorting to custom solutions, which we'd prefer to avoid.

* chore: remove extra `WORKDIR` and imp comments

* chore: improve comment legibility

Co-authored-by: Arya <aryasolhi@gmail.com>

---------

Co-authored-by: Pili Guerra <mpguerra@users.noreply.github.com>
Co-authored-by: Arya <aryasolhi@gmail.com>
2024-09-05 13:29:22 +00:00
..
zcash-lightwalletd ref(build)!: use official lightwallted image for CI (#8323) 2024-02-29 15:50:50 +00:00
.env feat(docker): allow users to use Zebra + LWD with persistent states (#8215) 2024-02-01 21:54:17 +00:00
Dockerfile ref(docker): use cache mounts for build cache (#8796) 2024-09-05 13:29:22 +00:00
docker-compose.lwd.yml feat(docker): allow users to use Zebra + LWD with persistent states (#8215) 2024-02-01 21:54:17 +00:00
docker-compose.test.yml feat(docker): add `docker-compose` file to run CI locally (#8209) 2024-01-30 19:19:44 +00:00
docker-compose.yml fix(docker): set log rotation to avoid docker bugs (#8269) 2024-02-20 10:40:38 +00:00
entrypoint.sh fix(docker): allow the `zebra` user access to relevant dirs (#8817) 2024-08-29 19:57:17 +00:00
test.env feat(docker): allow users to use Zebra + LWD with persistent states (#8215) 2024-02-01 21:54:17 +00:00