resilientagent-prod / Dockerfile
Ajay1232's picture
fix: clamp grader scores to (0.01, 0.99) - Phase 2 validator requires strictly between 0 and 1
a8ab4a8
Raw
History Blame Contribute Delete
471 Bytes
FROM python:3.11-slim
WORKDIR /app
# Install curl for healthcheck
RUN apt-get update && apt-get install -y --no-install-recommends curl && rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD curl -f http://localhost:7860/health || exit 1
EXPOSE 7860
CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"]