The whole stack now comes up healthy under one `docker compose` run (gitgram backend+web + Postgres/Redis + aitm-api/mcp/website + gitnexus); only the optional tools-profile context7 remains (pre-existing workspace-build issue). gitgram/backend/Dockerfile: move to a glibc base (node:20-bookworm-slim). Alpine musl lacks the glibc loader that @tensorflow/tfjs-node's native libtensorflow needs (ERR_DLOPEN_FAILED), so NSFW detection now runs for real (no stubbing). Full install WITH lifecycle scripts in the builder (downloads libtensorflow), node_modules reused in the runtime stage so devDeps like swagger-ui-express are present for the NODE_ENV=development compose run; openssl + ffmpeg + libgomp1 runtime libs; create writable /app/logs + /app/uploads for the non-root user. prisma schema: binaryTargets -> debian/arm64 openssl-3 for the glibc runtime. nsfwDetectionService: lazy-load tf + nsfwjs so a genuinely-unavailable native lib degrades gracefully instead of crashing at import (still uses real tfjs). gitgram/web/Dockerfile: npm ci -> npm install (workspace member's standalone lockfile drifts after dependency additions). Verified end-to-end through containers: register/login/post/feed 201/200, web homepage + GitHub->Gitgram /caelum0x both 200. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Gitgram Web
Web version of Gitgram built with Next.js 14, TypeScript, and Tailwind CSS.
Getting Started
- Install dependencies:
npm install
- Set up environment variables:
cp .env.example .env
- Run the development server:
npm run dev
- Open http://localhost:3000 in your browser.
Features
- Next.js 14 App Router
- TypeScript
- Tailwind CSS for styling
- GitHub-inspired UI
- Shared API client with mobile app
- Authentication with JWT
- Server-side rendering (SSR)
- Static site generation (SSG)
Project Structure
web/
├── app/ # Next.js App Router pages
├── components/ # React components
├── services/ # API services
├── store/ # State management (Zustand)
└── lib/ # Utilities