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).
This commit is contained in:
Tobias J. Endres 2026-06-23 15:40:03 +02:00
parent 075751c815
commit e5fde01f8b
4 changed files with 16 additions and 4 deletions

View file

@ -1,5 +1,8 @@
FROM python:3.12-slim
RUN apt-get update && apt-get install -y --no-install-recommends nodejs npm && rm -rf /var/lib/apt/lists/*
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 "nc-mcp-server>=0.7.0" && npm install -g mcp-proxy@6.5.2
EXPOSE 8107
CMD ["mcp-proxy", "--port", "8107", "--host", "0.0.0.0", "--", "nc-mcp-server"]

View file

@ -1,5 +1,8 @@
FROM python:3.12-slim
RUN apt-get update && apt-get install -y --no-install-recommends nodejs npm && rm -rf /var/lib/apt/lists/*
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 "nginx-proxy-manager-mcp>=2.14.0" && npm install -g mcp-proxy@6.5.2
EXPOSE 8105
CMD ["mcp-proxy", "--port", "8105", "--host", "0.0.0.0", "--", "nginx-proxy-manager-mcp"]

View file

@ -1,5 +1,8 @@
FROM python:3.12-slim
RUN apt-get update && apt-get install -y --no-install-recommends nodejs npm && rm -rf /var/lib/apt/lists/*
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

View file

@ -1,5 +1,8 @@
FROM python:3.12-slim
RUN apt-get update && apt-get install -y --no-install-recommends nodejs npm && rm -rf /var/lib/apt/lists/*
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 web-researcher-mcp && npm install -g mcp-proxy@6.5.2
EXPOSE 8116
CMD ["mcp-proxy", "--port", "8116", "--host", "0.0.0.0", "--", "web-researcher-mcp"]