| 123456789101112131415161718192021222324252627 |
- FROM rust:bullseye AS builder
- RUN apt update && apt install -y wget clang cmake build-essential libclang-dev git
- WORKDIR /app
- RUN git clone https://github.com/zorp-corp/nockchain.git && \
- cd nockchain && \
- make install-choo && \
- make build-hoon-all && \
- make build
- FROM debian:bullseye-slim
- RUN apt update && apt install -y ca-certificates && rm -rf /var/lib/apt/lists/*
- COPY --from=builder /app/nockchain/target/release/nockchain /app/bin/
- COPY --from=builder /app/nockchain/target/release/wallet /app/wallet/
- WORKDIR /app/data
- COPY entrypoint.sh /app/entrypoint.sh
- RUN chmod +x /app/entrypoint.sh
- # 设置默认命令
- ENTRYPOINT ["/app/entrypoint.sh"]
|