| # F.R.I.D.A.Y. — Sovereign Subconscious Cloud Container (Optimized) | |
| FROM python:3.9-slim-bullseye | |
| # Install system dependencies for Headless Logic & Phonemizer | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| libpq-dev \ | |
| curl \ | |
| espeak-ng \ | |
| libgl1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # Copy lean requirements and install | |
| COPY backend/requirements_cloud.txt ./requirements.txt | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy logic | |
| COPY backend/ ./backend/ | |
| COPY static/ ./static/ | |
| # Set environment to Headless | |
| ENV NODE_TYPE=SUBCONSCIOUS | |
| ENV PYTHONUNBUFFERED=1 | |
| # Launch the loop | |
| CMD ["python", "backend/app/scratch/subconscious_loop.py"] | |