Spaces:
Sleeping
Sleeping
Commit History
-
build: BuildKit cache mounts + .dockerignore + cursor rule
NeonClary +1: CursorDockerfile opts into BuildKit (# syntax=docker/dockerfile:1.7) and mounts persistent caches at /root/.npm and /home/user/.cache/pip so npm and pip downloads survive across rebuilds. First build is unchanged; subsequent rebuilds skip the network for unchanged dependencies. .dockerignore narrows the build context (drops .git, .cursor, node_modules, build outputs, Python/Node caches, .env files, backend/tests, etc.) so the daemon does not ship hundreds of MB of local-dev cruft to the builder on every build. .cursor/rules/docker-build.mdc captures the conventions (syntax directive, cache mount targets, no --no-cache-dir, build context narrowing) so future agents reuse the same pattern instead of regressing. Co-authored-by: Cursor <cursoragent@cursor.com>2011737
-
Make local docker compose port-overridable; fix lockfile drift
NeonClary +1: Cursor- docker-compose.yml: host port now reads from ${CCAI_HOST_PORT:-7860} so local devs can sidestep port conflicts (e.g. set CCAI_HOST_PORT=3002 in .env) without editing the compose file. Default stays 7860 for HuggingFace Space parity. - Dockerfile: frontend stage bumped from node:20-alpine to node:22-alpine so the in-container npm matches the host npm 11 that maintains the lockfile. Without this, npm ci inside the container failed with a "Missing yaml@2.9.0 from lock file" lockfile-drift error. - frontend/package-lock.json: regenerated cleanly so `npm ci` is reproducible across hosts. - .gitignore: ignore docker-compose.override.yml (used for local-only port + env_file overrides) and the transient .commit-msg.txt buffer. Co-authored-by: Cursor <cursoragent@cursor.com>e03c7d3 -
Import LLMChats3 master as CCAI baseline
NeonClary +1: CursorCo-authored-by: Cursor <cursoragent@cursor.com>c44fab6