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