From 9d6db65e34bd376857babd4a4d4957f1836f3b69 Mon Sep 17 00:00:00 2001 From: Sean O'Connor Date: Sun, 2 Aug 2026 14:06:16 -0400 Subject: [PATCH] Add Dockerfile --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5741187 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM python:3.13-slim AS base # Prevent bytecode + enable unbuffered output ENV PYTHONDONTWRITEBYTECODE=1 \ +PYTHONUNBUFFERED=1 WORKDIR /app # Install deps in a separate layer for caching COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy source COPY src/ src/ # Non-root user RUN adduser --disabled-password --no-create-home appuser USER appuser EXPOSE 3000 ENV PORT=3000 HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \ +CMD python -c "import httpx; r = httpx.get('http://localhost:3000/mcp', timeout=5); assert r.status_code == 200" || exit 1 CMD ["python", "src/server.py"] \ No newline at end of file