Created
December 13, 2022 01:57
-
-
Save wileyj/4dbe11f755bd34063391289c1345ca66 to your computer and use it in GitHub Desktop.
Stacks Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM rust:slim-bullseye as build | |
ARG STACKS_VERSION="2.05.0.6.0" | |
ENV STACKS_VERSION="${STACKS_VERSION}" | |
WORKDIR /src | |
RUN apt-get update && apt-get install -y git | |
RUN mkdir /out | |
RUN git clone --depth 1 --branch ${STACKS_VERSION} https://github.com/stacks-network/stacks-blockchain \ | |
&& cd stacks-blockchain/testnet/stacks-node \ | |
&& cargo build --features monitoring_prom,slog_json --target-dir /out --release | |
FROM debian:bullseye-slim | |
RUN apt update && apt install -y netcat curl | |
COPY --from=build /out/release/stacks-node /bin/ | |
CMD ["stacks-node", "mainnet"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment