# For glama.ai registry use:
FROM debian:bookworm-slim
ENV DEBIAN_FRONTEND=noninteractive \
GLAMA_VERSION="1.0.0"
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl git && curl -fsSL https://deb.nodesource.com/setup_24.x | bash - && apt-get install -y --no-install-recommends nodejs && npm install -g mcp-proxy@5.12.0 pnpm@10.14.0 && node --version && curl -LsSf https://astral.sh/uv/install.sh | UV_INSTALL_DIR="/usr/local/bin" sh && uv python install 3.13 --default --preview && ln -s $(uv python find) /usr/local/bin/python && python --version && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
WORKDIR /app
RUN git clone https://github.com/OGMatrix/mcmodding-mcp . && git checkout 42224451afee294ae51d7d3fc7516d4fe4d92c37
RUN apt-get update && apt-get install -y --no-install-recommends build-essential python3 && npm install && npm run postinstall && npm run build
CMD ["mcp-proxy","npm","--","run","start"]