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).
8 lines
No EOL
502 B
Docker
8 lines
No EOL
502 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 "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"] |