mirror of
https://github.com/Twigpine/node.git
synced 2026-11-09 05:20:05 -10:00
Open-source release of the gitlawb node, CLI, and git remote helper. - gitlawb-node: Axum HTTP server with git smart-HTTP and DID auth - gl: command-line client (identity, repos, PRs, MCP server) - git-remote-gitlawb: git remote helper for gitlawb:// URLs - gitlawb-core: shared crypto primitives (DID, CID, HTTP sigs, UCAN) Dual licensed under MIT or Apache-2.0. Co-Authored-By: OpenClaude <[email protected]>
32 lines
969 B
Docker
32 lines
969 B
Docker
# Builds gl and git-remote-gitlawb for the target platform.
|
|
# ARG TARGET must be set: x86_64-unknown-linux-musl or aarch64-unknown-linux-musl
|
|
# Used by scripts/build-bins.sh — not used for node deployment.
|
|
ARG TARGET=x86_64-unknown-linux-musl
|
|
|
|
FROM rust:1.85-bookworm AS builder
|
|
ARG TARGET
|
|
|
|
WORKDIR /build
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
musl-tools \
|
|
gcc-aarch64-linux-gnu \
|
|
pkg-config \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Add the musl targets
|
|
RUN rustup target add x86_64-unknown-linux-musl aarch64-unknown-linux-musl
|
|
|
|
COPY Cargo.toml Cargo.lock ./
|
|
COPY crates/ crates/
|
|
|
|
# Configure cross-linker for aarch64
|
|
ENV CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=aarch64-linux-gnu-gcc
|
|
|
|
RUN cargo build --release --target "$TARGET" -p gl -p git-remote-gitlawb
|
|
|
|
FROM debian:bookworm-slim
|
|
ARG TARGET
|
|
COPY --from=builder /build/target/$TARGET/release/gl /gl
|
|
COPY --from=builder /build/target/$TARGET/release/git-remote-gitlawb /git-remote-gitlawb
|