feat: Implement Docker deployment with configurable SSE/STDIO modes and add get_current_time tool.

This commit is contained in:
2026-01-25 15:56:42 +01:00
parent d8cb818040
commit 32dd756885
13 changed files with 173 additions and 1 deletions

28
Dockerfile Normal file
View File

@@ -0,0 +1,28 @@
# Use Python 3.14 as requested (using rc-slim as 3.14 is likely in pre-release)
# If 3.14-slim-bookworm is not available, this might need adjustment to python:3.14-rc-slim or similar.
FROM python:3.14-rc-slim-bookworm
# Install uv
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
# Set working directory
WORKDIR /app
# Copy dependency files
COPY pyproject.toml uv.lock ./
# Sync dependencies (frozen to ensure reproducibility)
RUN uv sync --frozen
# Copy source code
COPY src/ src/
COPY entrypoint.sh .
# Make entrypoint executable
RUN chmod +x entrypoint.sh
# Expose port 8000 for SSE mode
EXPOSE 8000
# Set entrypoint
ENTRYPOINT ["/app/entrypoint.sh"]