Files
stacks-subnets/Dockerfile.stretch
Brice Dobry ca1d9c0e8b fix: update server_version
The `/v2/info` endpoint is updated to report "subnet-node" instead of
"stacks-node".
2023-03-16 07:16:23 -04:00

23 lines
441 B
Docker

FROM rust:stretch as build
ARG SUBNET_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 cp target/release/subnet-node /out
FROM debian:stretch-slim
RUN apt update && apt install -y netcat openssl
COPY --from=build /out/ /bin/
CMD ["subnet-node", "mainnet"]