forked from mims-harvard/ToolUniverse
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (21 loc) · 752 Bytes
/
Copy pathDockerfile
File metadata and controls
28 lines (21 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM python:3.12-slim
WORKDIR /app
# Install build dependencies and runtime libraries for packages that need them
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
g++ \
libxrender1 \
libxext6 \
libsm6 \
libx11-6 \
libexpat1 \
&& rm -rf /var/lib/apt/lists/*
# Install tooluniverse from PyPI
RUN pip install --no-cache-dir tooluniverse
# Remove build dependencies to reduce image size (keep runtime libraries)
RUN apt-get purge -y gcc g++ && apt-get autoremove -y
# Set environment variable to reduce verbosity (optional)
ENV TOOLUNIVERSE_LOG_LEVEL=WARNING
# Run the MCP server with stdio transport
# TOOLUNIVERSE_STDIO_MODE=1 is automatically set by tooluniverse-smcp-stdio
CMD ["tooluniverse-smcp-stdio"]