feat: include Node.js to support node-based MCPs (#2642)

This commit is contained in:
Ahmed Rowaihi 2025-05-17 00:51:53 +03:00 committed by GitHub
parent 0ed15e9b1a
commit c6711e8218
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,18 +40,22 @@ RUN poetry lock && \
# Runtime stage
FROM ankane/pgvector:v0.5.1 AS runtime
# Install Python packages and OpenTelemetry Collector
RUN apt-get update && apt-get install -y \
python3 \
python3-venv \
curl \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /app \
# Overridable Node.js version with --build-arg NODE_VERSION
ARG NODE_VERSION=22
RUN apt-get update && \
# Install curl and Python
apt-get install -y curl python3 python3-venv && \
# Install Node.js
curl -fsSL https://deb.nodesource.com/setup_${NODE_VERSION}.x | bash - && \
apt-get install -y nodejs && \
# Install OpenTelemetry Collector
&& curl -L https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v0.96.0/otelcol-contrib_0.96.0_linux_amd64.tar.gz -o /tmp/otel-collector.tar.gz \
&& tar xzf /tmp/otel-collector.tar.gz -C /usr/local/bin \
&& rm /tmp/otel-collector.tar.gz \
&& mkdir -p /etc/otel
curl -L https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v0.96.0/otelcol-contrib_0.96.0_linux_amd64.tar.gz -o /tmp/otel-collector.tar.gz && \
tar xzf /tmp/otel-collector.tar.gz -C /usr/local/bin && \
rm /tmp/otel-collector.tar.gz && \
mkdir -p /etc/otel && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Add OpenTelemetry Collector configs
COPY otel/otel-collector-config-file.yaml /etc/otel/config-file.yaml