Skip to content

Same agent Smaller bill. The tools and infrastructure to get more work from your AI. Fewer tokens. Less compute. Lower cost.

Update Dockerfile

patcher91672376f0d21
diff --git a/otel-gpu-collector/dockerfile b/otel-gpu-collector/dockerfile
index d3db96d3..ef753a8e 100644
--- a/otel-gpu-collector/dockerfile
+++ b/otel-gpu-collector/dockerfile
@@ -4,11 +4,20 @@ FROM python:3.9-slim
# Set the working directory in the container
WORKDIR /usr/src/app
+# Install build dependencies and necessary libraries
+RUN apt-get update && apt-get install -y --no-install-recommends \
+ gcc \
+ python3-dev \
+ libffi-dev \
+ libssl-dev \
+ && apt-get clean \
+ && rm -rf /var/lib/apt/lists/*
+
# Copy the current directory contents into the container at /usr/src/app
COPY . .
-# Install openlit library
-RUN pip install --no-cache-dir openlit
+# Install necessary Python packages
+RUN pip install --no-cache-dir --no-binary :all: psutil openlit
# Expose any required ports, if necessary
EXPOSE 80