mirror of
https://github.com/motiful/cc-gateway.git
synced 2026-08-28 18:53:10 +08:00
065a41c6d0
Reverse proxy that unifies device fingerprints for shared account usage. Uses ANTHROPIC_BASE_URL to intercept API + telemetry traffic, rewrites device_id, env fingerprint, and process metrics. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
17 lines
353 B
Docker
17 lines
353 B
Docker
FROM node:22-slim AS builder
|
|
WORKDIR /app
|
|
COPY package.json package-lock.json* ./
|
|
RUN npm install
|
|
COPY tsconfig.json ./
|
|
COPY src/ src/
|
|
RUN npx tsc
|
|
|
|
FROM node:22-slim
|
|
WORKDIR /app
|
|
COPY --from=builder /app/dist ./dist
|
|
COPY --from=builder /app/node_modules ./node_modules
|
|
COPY package.json ./
|
|
|
|
EXPOSE 8443
|
|
CMD ["node", "dist/index.js", "/app/config.yaml"]
|