Skip to content

7.4 billion tokens per month. 34 free LLM providers. 635 free model endpoints. All behind one /v1 endpoint, plus any custom OpenAI-compatible endpoint. Smart routing, automatic failover, encrypted keys. Personal experimentation only.

TypeScript

fix(docker): copy server/node_modules into the runtime image so the proxy can load undici

Tashc6589ff5479e
diff --git a/Dockerfile b/Dockerfile
index e4d8a194..32594ec6 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -36,6 +36,11 @@ ENV PORT=3001
COPY --from=build --chown=node:node /app/package.json /app/package-lock.json ./
COPY --from=build --chown=node:node /app/node_modules ./node_modules
+# npm nests some production packages under the workspace instead of hoisting
+# them (undici lives at server/node_modules/undici). Skipping this copy shipped
+# images where the HTTP(S) proxy dispatcher failed to load and every request
+# silently went direct — issue #550.
+COPY --from=build --chown=node:node /app/server/node_modules ./server/node_modules
COPY --from=build --chown=node:node /app/shared ./shared
COPY --from=build --chown=node:node /app/server/package.json ./server/package.json
COPY --from=build --chown=node:node /app/server/dist ./server/dist