mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-24 11:55:44 +08:00
21 lines
428 B
Docker
21 lines
428 B
Docker
FROM rust:stretch as build
|
|
|
|
WORKDIR /src
|
|
|
|
COPY . .
|
|
|
|
RUN mkdir /out
|
|
|
|
RUN cd testnet/stacks-node && cargo build --features "monitoring_prom" --release
|
|
RUN cd testnet/bitcoin-neon-controller && cargo build --release
|
|
|
|
RUN cp target/release/stacks-node /out
|
|
RUN cp target/release/bitcoin-neon-controller /out
|
|
|
|
FROM debian:stretch-slim
|
|
|
|
RUN apt update && apt install netcat
|
|
COPY --from=build /out/ /bin/
|
|
|
|
CMD ["stacks-node", "argon"]
|