forked from boos/BoosAPI
feat: Phase 5-6 - Proxy Conductor, Token Router, Services, Dockerfile
- Proxy Conductor: retry/fallback/auth-refresh orchestration loop - Token Router: exact/wildcard/regex model routing with channel selection - Services: Cron scheduler, OAuth token refresh, Update center, Announcements - User routes: profile + API key management - DB queries module - Dockerfile: multi-stage build - Proxy routes integrated with Conductor + TokenRouter
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
FROM rust:1.83-alpine AS builder
|
||||
RUN apk add --no-cache musl-dev pkgconfig openssl-dev
|
||||
WORKDIR /app
|
||||
COPY Cargo.toml Cargo.lock ./
|
||||
RUN mkdir src && echo "fn main() {}" > src/main.rs
|
||||
RUN cargo build --release 2>/dev/null || true
|
||||
COPY . .
|
||||
RUN cargo build --release
|
||||
|
||||
FROM alpine:3.20
|
||||
RUN apk add --no-cache ca-certificates tzdata sqlite-libs
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/target/release/boosapi .
|
||||
COPY --from=builder /app/migrations ./migrations
|
||||
EXPOSE 4000
|
||||
CMD ["./boosapi"]
|
||||
Reference in New Issue
Block a user