Added Dockerfile and K8s manifests for deployment

This commit is contained in:
Clawdbot
2026-02-06 15:18:43 +11:00
parent 849fbaa936
commit 28e95bf025
3 changed files with 78 additions and 0 deletions

26
Dockerfile Normal file
View File

@@ -0,0 +1,26 @@
FROM python:3.11-slim
WORKDIR /app
# Install system dependencies (if any needed for pypdf or others)
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy source code
COPY server.py .
COPY README.md .
# Create a non-root user
RUN useradd -m appuser && chown -R appuser:appuser /app
USER appuser
# Expose the SSE port
EXPOSE 8000
# Run in SSE mode
CMD ["python", "server.py", "--transport", "sse", "--port", "8000", "--host", "0.0.0.0"]