mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-06-17 02:24:48 +08:00
14 lines
376 B
Docker
14 lines
376 B
Docker
FROM rust:stretch as build
|
|
|
|
WORKDIR /src
|
|
|
|
COPY . .
|
|
|
|
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/blockstack-core /out/blockstack-cli /out/clarity-cli /out/stacks-node / |