# Build stage: use uv to build wheel and install into a relocatable target dir
FROM ghcr.io/astral-sh/uv:python3.11-bookworm AS build
WORKDIR /app
COPY . /app
RUN uv build
# Install the built wheel into a target directory we can copy into distroless
# Avoid relying on console_scripts paths; we will run via "python -m"
RUN uv pip install --no-cache-dir --target=/opt/site-packages /app/dist/*.whl
# Runtime stage: distroless has no shell, so do not RUN anything here
FROM gcr.io/distroless/python3-debian12:debug
ENV PYTHONPATH=/usr/lib/python3.11/site-packages
# Add installed packages
COPY --from=build /opt/site-packages ${PYTHONPATH}
USER nonroot
# Run the module directly to avoid console_script shebang path issues
CMD ["-m", "nagoya_bus_mcp"]
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ymyzk/nagoya-bus-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server