52719d1a7c
- Migrated all package tsconfig files to extend tsconfig.workspace.json for unified TypeScript configuration across monorepo. - Consolidated build and check scripts across 10+ packages to use biome for linting/formatting with separate type checking via tsgo. - Renamed build scripts from build:native and build:binary to build for simplified command naming across packages/natives and packages/coding-agent. - Refactored CI workflow to invoke bun tasks instead of inline shell scripts, reducing workflow complexity by 40+ lines. - Removed sync-exports.ts and repro-stuck.ts scripts; deleted path aliases from tsconfig.base.json in favor of workspace-based configuration. - Updated turbo.json with new task definitions (check:types, lint, fmt, fix) and removed build:native/embed:native tasks.
32 lines
994 B
Docker
32 lines
994 B
Docker
# Test binary build from local source
|
|
FROM debian:bookworm-slim
|
|
|
|
RUN apt-get update && apt-get install -y curl ca-certificates unzip build-essential && rm -rf /var/lib/apt/lists/*
|
|
|
|
# Install bun
|
|
RUN curl -fsSL https://bun.sh/install | bash
|
|
ENV PATH="/root/.bun/bin:$PATH"
|
|
|
|
# Install Rust
|
|
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly
|
|
ENV PATH="/root/.cargo/bin:$PATH"
|
|
|
|
# Copy local repo
|
|
WORKDIR /repo
|
|
COPY . .
|
|
|
|
# Build native addon and binary
|
|
RUN bun install --frozen-lockfile
|
|
RUN bun --cwd=packages/natives run build
|
|
RUN cd packages/coding-agent && bun run build
|
|
|
|
# Install binary and native addon to PATH
|
|
RUN mkdir -p /root/.local/bin && \
|
|
cp packages/coding-agent/dist/omp /root/.local/bin/ && \
|
|
cp packages/natives/native/pi_natives.linux-x64-modern.node /root/.local/bin/ && \
|
|
cp packages/natives/native/pi_natives.linux-x64-baseline.node /root/.local/bin/
|
|
ENV PATH="/root/.local/bin:$PATH"
|
|
|
|
# Verify
|
|
RUN omp --version
|