# Use Python 3.11 slim image as base
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Install uv package manager
RUN pip install --no-cache-dir uv
# Copy project files
COPY pyproject.toml ./
COPY src ./src
COPY README.md ./
# Install dependencies
RUN uv sync
# Set default environment variables for optional settings
# OPENPROJECT_URL and OPENPROJECT_API_KEY must be provided at runtime
ENV OPENPROJECT_TIMEOUT=30
ENV OPENPROJECT_MAX_RETRIES=3
# Expose the default MCP port (though MCP typically uses stdio)
# This is mainly for documentation purposes
EXPOSE 3000
# Run the MCP server
# CMD ["uv", "run", "openproject-mcp"]
# ENTRYPOINT ["uv","run","openproject-mcp"]