Files
stacks-subnets/build-scripts/Dockerfile.macos-x64
Brice Dobry ca1d9c0e8b fix: update server_version
The `/v2/info` endpoint is updated to report "subnet-node" instead of
"stacks-node".
2023-03-16 07:16:23 -04:00

24 lines
801 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 rustup target add x86_64-apple-darwin
RUN apt-get update && apt-get install -y clang zstd
RUN wget -nc -O /tmp/osxcross.tar.zst "https://github.com/hirosystems/docker-osxcross-rust/releases/download/MacOSX12.0.sdk/osxcross-d904031_MacOSX12.0.sdk.tar.zst"
RUN mkdir /opt/osxcross && tar -xaf /tmp/osxcross.tar.zst -C /opt/osxcross
RUN . /opt/osxcross/env-macos-x86_64 && \
cargo build --target x86_64-apple-darwin --release --workspace
RUN mkdir /out && cp -R /src/target/x86_64-apple-darwin/release/. /out
FROM scratch AS export-stage
COPY --from=build /out/stacks-inspect /out/blockstack-cli /out/clarity-cli /out/stacks-node /