Spaces:
Build error
Build error
Download hf_bootnode/Dockerfile from trvorth/qanto-testnet: direct link, hf CLI and curl.
- Browser
- Download file 1.06 kB
-
https://huggingface.co/spaces/trvorth/qanto-testnet/resolve/main/hf_bootnode/Dockerfile
- Command line
-
hf download hf://spaces/trvorth/qanto-testnet/hf_bootnode/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/trvorth/qanto-testnet/resolve/main/hf_bootnode/Dockerfile
1.06 kB
| FROM rust:1.77-bookworm AS builder | |
| # Install build dependencies | |
| RUN apt-get update && apt-get install -y pkg-config libssl-dev cmake build-essential clang llvm | |
| WORKDIR /usr/src/qanto | |
| # Copy the entire workspace | |
| COPY . . | |
| # Build the qanto and qantowallet bins in release mode | |
| RUN cargo build --release --bin qanto | |
| RUN cargo build --release --bin qantowallet | |
| FROM debian:bookworm-slim | |
| RUN apt-get update && apt-get install -y libssl-dev ca-certificates curl && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY --from=builder /usr/src/qanto/target/release/qanto /app/ | |
| COPY --from=builder /usr/src/qanto/target/release/qantowallet /app/ | |
| # Copy default config template if we have one | |
| COPY --from=builder /usr/src/qanto/Protocol_Core/qanto-node/config.toml /app/config.toml || echo "No config.toml found, will use args" > /dev/null | |
| ENV WALLET_PASSWORD="" | |
| ENV RUST_LOG="info" | |
| EXPOSE 8080 | |
| EXPOSE 7860 | |
| # Generate a default wallet on first run if none exists, then start node | |
| CMD ./qanto generate-wallet --output wallet.key && ./qanto start --wallet wallet.key --mine | |