mirror of
https://github.com/alexgo-io/stacks-subnets.git
synced 2026-04-28 19:55:23 +08:00
24 lines
437 B
Docker
24 lines
437 B
Docker
FROM rust:alpine 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 apk add --no-cache musl-dev openssl-dev
|
|
|
|
RUN mkdir /out
|
|
|
|
RUN cd testnet/stacks-node && cargo build --features monitoring_prom,slog_json --release
|
|
|
|
RUN cp target/release/hyperchain-node /out
|
|
|
|
FROM alpine:latest
|
|
|
|
COPY --from=build /out/ /bin/
|
|
|
|
CMD ["hyperchain-node", "start"]
|