From e5fde01f8b1b02cccff804b73ae850b3fc6db605 Mon Sep 17 00:00:00 2001 From: "Tobias J. Endres" Date: Tue, 23 Jun 2026 15:40:03 +0200 Subject: [PATCH] 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). --- nextcloud/Dockerfile | 5 ++++- nginx-proxy-manager/Dockerfile | 5 ++++- portainer/Dockerfile | 5 ++++- web-search/Dockerfile | 5 ++++- 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/nextcloud/Dockerfile b/nextcloud/Dockerfile index 4818083..fe76a70 100644 --- a/nextcloud/Dockerfile +++ b/nextcloud/Dockerfile @@ -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"] \ No newline at end of file diff --git a/nginx-proxy-manager/Dockerfile b/nginx-proxy-manager/Dockerfile index cbccdfb..ce963f0 100644 --- a/nginx-proxy-manager/Dockerfile +++ b/nginx-proxy-manager/Dockerfile @@ -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"] \ No newline at end of file diff --git a/portainer/Dockerfile b/portainer/Dockerfile index d8c8013..aa7d9b6 100644 --- a/portainer/Dockerfile +++ b/portainer/Dockerfile @@ -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 diff --git a/web-search/Dockerfile b/web-search/Dockerfile index bb93259..0cd3f63 100644 --- a/web-search/Dockerfile +++ b/web-search/Dockerfile @@ -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"] \ No newline at end of file