mirror of
https://github.com/alexgo-io/stacks-subnets.git
synced 2026-01-12 16:53:24 +08:00
20 lines
525 B
Docker
20 lines
525 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 apt-get update && apt-get install -y git
|
|
|
|
RUN rustup target add x86_64-unknown-linux-gnu
|
|
|
|
RUN cargo build --release --workspace --target x86_64-unknown-linux-gnu
|
|
|
|
RUN mkdir /out && cp -R /src/target/x86_64-unknown-linux-gnu/release/. /out
|
|
|
|
FROM scratch AS export-stage
|
|
COPY --from=build /out/stacks-inspect /out/blockstack-cli /out/clarity-cli /out/stacks-node / |