|
|
@@ -0,0 +1,21 @@
|
|
|
+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-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-wallet /usr/local/bin/
|
|
|
+
|
|
|
+WORKDIR /app
|
|
|
+
|
|
|
+# 设置默认命令为 nockchain-wallet
|
|
|
+ENTRYPOINT ["nockchain-wallet"]
|