mirror of
https://github.com/alexgo-io/stacks-subnets.git
synced 2026-01-12 08:34:47 +08:00
* Update build metadata. don't trigger from pushed tags anymore * ignore git directory in docker context, change config vars for versioning * Update server_version at /v2/info * fix rustfmt Co-authored-by: Aaron Blankstein <aaron@blockstack.com>
25 lines
546 B
Docker
25 lines
546 B
Docker
FROM rust:stretch as build
|
|
|
|
ARG STACKS_NODE_VERSION="No Version Info"
|
|
ARG GIT_BRANCH='No Branch Info'
|
|
ARG GIT_COMMIT='No Commit Info'
|
|
|
|
WORKDIR /src
|
|
|
|
COPY . .
|
|
|
|
RUN mkdir /out
|
|
|
|
RUN cd testnet/stacks-node && cargo build --features monitoring_prom,slog_json --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 -y netcat
|
|
COPY --from=build /out/ /bin/
|
|
|
|
CMD ["stacks-node", "xenon"]
|