Spaces:
Sleeping
Sleeping
| # FEB11TH-DOCKERFILE → PRODUCTION READY | |
| FROM python:3.11-slim | |
| # Multi-stage for lean production | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| gcc g++ && rm -rf /var/lib/apt/lists/* | |
| # ML deps → Spectral geometry stack | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Production app | |
| COPY . /app | |
| WORKDIR /app | |
| EXPOSE 3100 | |
| # Healthcheck + non-root user | |
| HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ | |
| CMD curl -f http://localhost:3100/n2r || exit 1 | |
| USER 1000:1000 | |
| CMD ["python", "DOCKER-SERVER.PY"] |