# Local fictional demo, not the RuntimeGuardrails.ai website deployment.
# Pin the base image digest and lock transitive dependencies before production.
FROM python:3.13-slim
ENV PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1
WORKDIR /app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
# Explicit copies avoid baking unrelated source, credentials or .env into image.
COPY buffered_sse.py stream_telemetry.py status_reporter.py main.py dashboard.html dashboard.js dashboard.css ./
USER 10001:10001
EXPOSE 8000
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "1", "--no-proxy-headers", "--no-access-log"]
