mirror of
https://github.com/alexgo-io/stacks-subnets.git
synced 2026-04-28 19:55:23 +08:00
22 lines
410 B
Docker
22 lines
410 B
Docker
FROM rust:alpine as build
|
|
|
|
WORKDIR /src
|
|
|
|
COPY . .
|
|
|
|
RUN apk add --no-cache musl-dev
|
|
|
|
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 alpine
|
|
|
|
COPY --from=build /out/ /bin/
|
|
|
|
CMD ["stacks-node", "argon"]
|