mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-08-28 05:27:41 +00:00
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>
30 lines
955 B
Docker
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"]
|