mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-08-28 05:27:41 +00:00
- Switch mintlify install from bun to npm with katex version patch - Add arm64 platform and pull_policy: never to docker-compose.demo.yaml - Unwrap data envelope in verifications loader response - Add name-gen script Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
30 lines
924 B
Docker
30 lines
924 B
Docker
FROM rust:1-bookworm AS rust-builder
|
|
WORKDIR /app
|
|
COPY Cargo.toml Cargo.lock ./
|
|
COPY crates 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 packages/arc-api-client/package.json packages/arc-api-client/
|
|
RUN bun install --frozen-lockfile
|
|
|
|
COPY apps/arc-web apps/arc-web
|
|
COPY packages/arc-api-client packages/arc-api-client
|
|
COPY docs docs
|
|
COPY entrypoint.ts .
|
|
|
|
ENTRYPOINT ["bun", "run", "entrypoint.ts"]
|