MCPs/portainer/Dockerfile
Tobias J. Endres e5fde01f8b fix: use NodeSource v22 instead of Debian npm (pulls 375 packages)
Switch from apt-get install nodejs npm to NodeSource setup_22.x
to avoid pulling 245MB of unnecessary build dependencies on
python:3.12-slim (Debian Trixie).
2026-06-23 15:40:03 +02:00

9 lines
No EOL
513 B
Docker

FROM python:3.12-slim
RUN apt-get update && apt-get install -y --no-install-recommends curl ca-certificates && rm -rf /var/lib/apt/lists/* && \
curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
apt-get install -y --no-install-recommends nodejs && \
rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir "mcp-portainer~=2.42.0" && npm install -g mcp-proxy@6.5.2
ENV PORTAINER_TLS_VERIFY=false
EXPOSE 8110
CMD ["mcp-proxy", "--port", "8110", "--host", "0.0.0.0", "--", "mcp-portainer"]