Skip to content
Merged
Show file tree
Hide file tree
Changes from 17 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
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@
!zebra-*
!zebrad
!docker/entrypoint.sh
!testnet-single-node-deploy/
25 changes: 17 additions & 8 deletions testnet-single-node-deploy/dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
# Use Rust 1.81.0 as the base image
FROM rust:1.81.0

# Install required dependencies
RUN apt-get update && apt-get install -y git build-essential clang
# Set up Rust and cargo
RUN apt-get update && apt-get install git build-essential clang -y

# Copy the entire project, except whats defined in .dockerignore
# Set the working directory to the repo root
WORKDIR /app

# Copy the entire repository content (from the parent zebra directory)
COPY . .

# Build the 'zebrad' binary with the 'getblocktemplate-rpcs' feature enabled
RUN ls -la /app/
RUN find /app -name "*testnet*" -type d
RUN find /app -name "*regtest*" -type f
RUN pwd && ls -la

# Build zebrad with the required features
RUN cargo build --release --package zebrad --bin zebrad --features="getblocktemplate-rpcs"

# Expose the default Zebra node RPC port
RUN ls -la target/release/
RUN find target/release -name "*zebr*" -type f

EXPOSE 18232

# Set the entrypoint
ENTRYPOINT ["target/release/zebrad", "-c", "regtest-config.toml"]
# Run the zebra node
ENTRYPOINT ["target/release/zebrad", "-c", "/app/testnet-single-node-deploy/regtest-config.toml"]