| 1234567891011121314151617181920212223242526272829 |
- FROM rust:bullseye AS builder
- RUN apt update && apt install -y wget clang cmake build-essential libclang-dev git llvm-dev make protobuf-compiler
- WORKDIR /app
- RUN git clone https://github.com/zorp-corp/nockchain.git && \
- cd nockchain && \
- cp .env_example .env && \
- make install-hoonc && \
- 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/nockchain-wallet /app/wallet/
- WORKDIR /app/data
- COPY entrypoint.sh /app/entrypoint.sh
- COPY checkWallet.sh /app/checkWallet.sh
- RUN chmod +x /app/entrypoint.sh
- RUN chmod +x /app/checkWallet.sh
- # 设置默认命令
- ENTRYPOINT ["/app/entrypoint.sh"]
|