Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions validity/Dockerfile.celestia
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ RUN --mount=type=ssh \
--mount=type=cache,target=/root/.cargo/registry \
--mount=type=cache,target=/build/target \
cargo build --bin validity --release --features celestia && \
cp target/release/validity /build/celestia-validity-proposer
cp target/release/validity /build/validity-proposer

# Final stage
FROM rust:1.85-slim
Expand All @@ -50,10 +50,10 @@ RUN curl -L https://sp1.succinct.xyz | bash && \
~/.sp1/bin/cargo-prove prove --version

# Copy only the built binaries from builder
COPY --from=builder /build/celestia-validity-proposer /usr/local/bin/celestia-validity-proposer
COPY --from=builder /build/validity-proposer /usr/local/bin/validity-proposer

# Set jemalloc flags to aggressively release memory to avoid memory fragmentation.
ENV JEMALLOC_SYS_WITH_MALLOC_CONF="background_thread:true,narenas:1,tcache:false,dirty_decay_ms:0,muzzy_decay_ms:0,abort_conf:true"

# Run the server from its permanent location
CMD ["/usr/local/bin/celestia-validity-proposer"]
CMD ["/usr/local/bin/validity-proposer"]
Loading