mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-01-12 22:43:42 +08:00
- incorrectly using some logic from a different PR from same repo - removed 'puppet-chain' from dockerfiles
23 lines
433 B
Docker
23 lines
433 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 cp target/release/stacks-node /out
|
|
|
|
FROM debian:stretch-slim
|
|
|
|
RUN apt update && apt install -y netcat
|
|
COPY --from=build /out/ /bin/
|
|
|
|
CMD ["stacks-node", "mainnet"]
|