# Use Python 3.11 slim image
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Install uv for fast package management
RUN pip install --no-cache-dir uv
# Copy project files
COPY pyproject.toml README.md ./
COPY src/ ./src/
# Install dependencies using uv
RUN uv pip install --system -e .
# Expose port (if needed for HTTP-based MCP in future)
EXPOSE 8000
# Set the entry point to run the MCP server
ENTRYPOINT ["task-mcp-server"]
# Health check (optional)
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD python -c "import sys; sys.exit(0)"