2023-06-29 13:19:15 -07:00
|
|
|
# This image is for caching Zcash Sprout and Sapling parameters.
|
|
|
|
# We don't test it automatically in CI due to download server rate-limiting.
|
|
|
|
# To manually run it on the PR branch before merging, go to:
|
|
|
|
# https://github.com/ZcashFoundation/zebra/actions/workflows/zcash-params.yml
|
2022-02-08 16:50:13 -08:00
|
|
|
|
2023-06-27 19:34:46 -07:00
|
|
|
FROM debian:bullseye-slim AS release
|
2022-02-08 16:50:13 -08:00
|
|
|
|
2023-06-29 13:19:15 -07:00
|
|
|
# Just use the precompiled zebrad binary from a recent release image.
|
2023-06-27 19:34:46 -07:00
|
|
|
#
|
|
|
|
# It doesn't matter what build or commit of Zebra we use, because it just calls into the
|
|
|
|
# zcash_proofs download code. (Which doesn't change much.)
|
2023-06-29 13:19:15 -07:00
|
|
|
# Test image zebrad binaries would also work, but it's harder to get a recent tag for them.
|
2023-06-27 19:34:46 -07:00
|
|
|
#
|
|
|
|
# Compiling the download-params example using `cargo ` is another alternative:
|
|
|
|
# `cargo run --locked --release --features default-docker --example download-params`
|
2023-06-29 13:19:15 -07:00
|
|
|
COPY --from=zfnd/zebra:latest /usr/local/bin/zebrad /usr/local/bin
|
2022-02-08 16:50:13 -08:00
|
|
|
|
|
|
|
# Pre-download Zcash Sprout and Sapling parameters
|
2023-06-27 19:34:46 -07:00
|
|
|
RUN zebrad download
|