You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 17, 2025. It is now read-only.
# Use an official Python runtime as a parent image
2
+
FROM python:3.12-slim
3
+
4
+
# Set environment variables to prevent interactive prompts during installation
5
+
ENV PYTHONUNBUFFERED=1 \
6
+
DEBIAN_FRONTEND=noninteractive
7
+
8
+
# Install system dependencies: nginx, curl (for health checks in registry), procps (for ps command used in stop script), openssl (for cert generation), git (needed by uv sometimes), build-essential (for potential C extensions)
9
+
RUN apt-get update && apt-get install -y --no-install-recommends \
10
+
nginx \
11
+
curl \
12
+
procps \
13
+
openssl \
14
+
git \
15
+
build-essential \
16
+
&& apt-get clean \
17
+
&& rm -rf /var/lib/apt/lists/*
18
+
19
+
# Install uv globally using pip
20
+
RUN pip install uv
21
+
22
+
# Set the working directory in the container
23
+
WORKDIR /app
24
+
25
+
# Copy the entire project context into the container
26
+
COPY . /app/
27
+
28
+
# Install Python dependencies for the MCP Registry using uv
29
+
# The server dependencies will be installed by start_all_servers.sh at runtime
30
+
RUN cd /app && uv pip install --system --requirement pyproject.toml
31
+
32
+
# Generate self-signed SSL certificate for Nginx
33
+
# Create directories for SSL certs
34
+
RUN mkdir -p /etc/ssl/certs /etc/ssl/private
35
+
# Generate the certificate and key
36
+
RUN openssl req -x509 -nodes -days 365 -newkey rsa:2048 \
0 commit comments