RabbitMQ MCP Server

# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile # Use a Python image with uv pre-installed FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim AS uv # Set the working directory in the container WORKDIR /app # Enable bytecode compilation ENV UV_COMPILE_BYTECODE=1 # Copy the necessary project files COPY pyproject.toml uv.lock /app/ # Install the project's dependencies using the lockfile RUN --mount=type=cache,target=/root/.cache/uv \ uv sync --frozen --no-install-project --no-dev --no-editable # Add the rest of the project source code and install it COPY src /app/src RUN --mount=type=cache,target=/root/.cache/uv \ uv sync --frozen --no-dev --no-editable # Runtime base FROM python:3.12-slim-bookworm WORKDIR /app COPY --from=uv /root/.local /root/.local COPY --from=uv /app/.venv /app/.venv # Set environment variable for Python path ENV PATH="/app/.venv/bin:$PATH" # Default command to run the server ENTRYPOINT ["mcp-server-rabbitmq"]