fabro/docker/Dockerfile
Bryan Helmkamp c2b40b4cfc Move packages/ to lib/packages/ and update all references
Updated: package.json workspaces, tsconfig path alias, CI workflow
paths, Dockerfile COPY, AGENTS.md, and doc references.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 13:13:56 -04:00

30 lines
955 B
Docker

FROM rust:1-bookworm AS rust-builder
WORKDIR /app
COPY Cargo.toml Cargo.lock ./
COPY lib/crates lib/crates
COPY openapi openapi
RUN cargo build --release --bin arc
FROM oven/bun:1
RUN apt-get update && apt-get install -y --no-install-recommends \
python3 make g++ ca-certificates nodejs npm && \
rm -rf /var/lib/apt/lists/*
RUN npm i -g mintlify && \
sed -i 's/const version = __VERSION__/const version = "0.0.0"/' \
/usr/local/lib/node_modules/mintlify/node_modules/katex/dist/katex.mjs
WORKDIR /app
COPY --from=rust-builder /app/target/release/arc /usr/local/bin/arc
COPY package.json bun.lock ./
COPY apps/arc-web/package.json apps/arc-web/
COPY lib/packages/arc-api-client/package.json lib/packages/arc-api-client/
RUN bun install --frozen-lockfile
COPY apps/arc-web apps/arc-web
COPY lib/packages/arc-api-client lib/packages/arc-api-client
COPY docs docs
COPY docker/entrypoint.ts .
ENTRYPOINT ["bun", "run", "entrypoint.ts"]