Skip to content

Instantly share code, notes, and snippets.

@wileyj
Created December 13, 2022 01:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wileyj/4dbe11f755bd34063391289c1345ca66 to your computer and use it in GitHub Desktop.
Save wileyj/4dbe11f755bd34063391289c1345ca66 to your computer and use it in GitHub Desktop.
Stacks Dockerfile
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