mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-28 11:46:07 +08:00
19 lines
441 B
Docker
19 lines
441 B
Docker
FROM rust:stretch as build
|
|
|
|
WORKDIR /src
|
|
|
|
COPY . .
|
|
|
|
RUN apt-get update && apt-get install -y git jq
|
|
|
|
RUN cargo build
|
|
|
|
RUN mkdir /out
|
|
|
|
RUN /src/target/debug/stacks-inspect docgen | jq . > /out/clarity-reference.json
|
|
RUN /src/target/debug/stacks-inspect docgen_boot | jq . > /out/boot-contracts-reference.json
|
|
|
|
FROM scratch AS export-stage
|
|
COPY --from=build /out/clarity-reference.json /
|
|
COPY --from=build /out/boot-contracts-reference.json /
|