Spaces:
Sleeping
Sleeping
File size: 581 Bytes
8c1975e 875c288 8c1975e 875c288 8c1975e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # 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"] |