# Genesis AI — React Dashboard # Hugging Face Spaces Dockerfile FROM python:3.11-slim # ── System deps: Node.js 20 ───────────────────────────────────────────── RUN apt-get update && apt-get install -y curl gnupg && \ curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \ apt-get install -y nodejs && \ apt-get clean && rm -rf /var/lib/apt/lists/* WORKDIR /app # ── Node deps ──────────────────────────────────────────────────────────── COPY package.json . RUN npm install # ── Copy source ────────────────────────────────────────────────────────── COPY . . # ── Build React app ─────────────────────────────────────────────────────── RUN npm run build # ── Output directory for JSON artefacts ────────────────────────────────── RUN mkdir -p /app/output COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh EXPOSE 7860 ENV PORT=7860 ENTRYPOINT ["/entrypoint.sh"]