mirror of
https://github.com/alexgo-io/stacks-subnets.git
synced 2026-01-12 08:34:47 +08:00
Clarinet now retrieves the contracts from the network, so we do not need the hack of putting them in the image.
22 lines
409 B
Docker
22 lines
409 B
Docker
FROM rust:bullseye 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 mkdir /out /contracts
|
|
|
|
RUN cd testnet/stacks-node && cargo build --features monitoring_prom,slog_json --release
|
|
|
|
RUN cp target/release/subnet-node /out
|
|
|
|
FROM debian:bullseye-backports
|
|
|
|
COPY --from=build /out/ /bin/
|
|
|
|
CMD ["subnet-node", "start"]
|