Files
ruflo/.gitattributes
T
afe0f72fd3 fix(chat-ui): make docker compose stack start from a fresh clone (#4641)
* fix(chat-ui): make docker compose stack start from a fresh clone

The Chat UI stack in ruflo/docker-compose.yml could not start from a clean
checkout:

- docker-compose.yml was invalid YAML: an unquoted ": " in the required
  MONGO_INITDB_ROOT_PASSWORD message.
- The Dockerfile copies ruvocal/.env, which was never committed, and the
  build fetches /models from OPENAI_BASE_URL. Commit a secret-free .env
  pointing at the public Hugging Face router; runtime still overrides it
  through .env.local (DOTENV_LOCAL).
- mcp-bridge bound to loopback inside its container, so chat-ui could not
  reach it. Default the in-container bind to 0.0.0.0 and require
  MCP_AUTH_TOKEN, which chat-ui now sends to the bridge. The host port stays
  published on 127.0.0.1, and the bridge's own loopback default and
  fail-closed check in index.js are unchanged.
- entrypoint.sh got CRLF on Windows with core.autocrlf=true and crashed the
  container. Force LF for shell scripts through .gitattributes.

MCP_AUTH_TOKEN is now required, so existing .env files need it added.

Co-Authored-By: RuFlo <ruv@ruv.net>

* fix(chat-ui): build without a committed ruvocal .env

Drop ruflo/src/ruvocal/.env (the repo does not commit .env files) and make the
Dockerfile's .env optional instead: copy it from the build context when present
(deploy builds keep supplying their own), otherwise write the same public
default, OPENAI_BASE_URL=https://router.huggingface.co/v1. A fresh clone now
builds the image without any .env. Verified the base stage with and without a
context .env.

Co-Authored-By: RuFlo <ruv@ruv.net>

---------

Co-authored-by: RuFlo <ruv@ruv.net>
Co-authored-by: r <r@x>
2026-11-17 22:42:22 -05:00

2 lines
17 B
Plaintext