Skip to repository content53 lines · 2.0 KB · text
tenant.openagents/omega
No repository description is available.
OpenAgents Git authority 2026-07-28T00:32:20.547Z Public web read
NIP-34 coordinate
30617:7649603503856e5148d571eac2766b288a8ff1e9e35d380337a1d2b0015b4f92:omegaMaintainersHidden in public view
References2 branches · 1 tag
Read-only clone
git clone https://openagents.com/git/tenant.openagents/omega.gitBrowse files
Dockerfile
1# Build eval-cli for Linux.
2#
3# Usage (from the zed repo root):
4# docker build --platform linux/amd64 -f crates/eval_cli/Dockerfile -t eval-cli-builder .
5# docker cp "$(docker create eval-cli-builder)":/eval-cli ./target/eval-cli
6#
7# Or use the helper script:
8# crates/eval_cli/script/build-linux
9
10FROM rust:1.95.0@sha256:f49565f188ee00bc2a18dd418183f2c5f23ef7d6e691890517ed341a598f67c3 AS builder
11
12ARG CARGO_ZIGBUILD_VERSION=0.22.3
13
14WORKDIR /app
15
16# Pre-install the toolchain specified in rust-toolchain.toml so it is cached.
17RUN rustup toolchain install 1.95.0 --profile minimal \
18 --component rustfmt --component clippy --component rust-analyzer --component rust-src \
19 --target wasm32-wasip2 --target wasm32-unknown-unknown --target x86_64-unknown-linux-musl --target x86_64-unknown-linux-gnu
20
21# Install build tools. cmake + build-essential are needed for vendored C
22# libraries (libgit2-sys, zstd-sys, libsqlite3-sys). No audio/GUI -dev
23# packages required — eval-cli runs headless with those features disabled.
24#
25# cargo-zigbuild cross-compiles against musl libc, producing a fully
26# static binary that runs on any Linux distro (glibc or musl / Alpine).
27RUN apt-get update && apt-get install -y --no-install-recommends \
28 cmake \
29 build-essential \
30 curl \
31 xz-utils \
32 && rm -rf /var/lib/apt/lists/*
33
34RUN mkdir -p /opt/zig \
35 && curl -fsSL https://ziglang.org/download/0.15.2/zig-x86_64-linux-0.15.2.tar.xz \
36 | tar -xJ -C /opt/zig --strip-components=1 \
37 && ln -s /opt/zig/zig /usr/local/bin/zig
38
39RUN cargo install --locked cargo-zigbuild --version ${CARGO_ZIGBUILD_VERSION}
40
41COPY . .
42
43RUN --mount=type=cache,target=/usr/local/cargo/registry \
44 --mount=type=cache,target=/usr/local/cargo/git \
45 --mount=type=cache,target=/app/target \
46 cargo zigbuild --release --package eval_cli \
47 --target x86_64-unknown-linux-musl && \
48 cp /app/target/x86_64-unknown-linux-musl/release/eval-cli /eval-cli && \
49 strip /eval-cli
50
51FROM scratch
52COPY --from=builder /eval-cli /eval-cli
53