forked from fastomop/omcp_r
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (27 loc) · 866 Bytes
/
Copy pathDockerfile
File metadata and controls
36 lines (27 loc) · 866 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
28
29
30
31
32
33
34
35
36
# Docker image for OMCP R MCP Server
# Builds a container with Python, UV package manager, and required dependencies
FROM python:3.11-slim
# Install system dependencies including curl for UV installation
RUN apt-get update && apt-get install -y \
curl \
gcc \
python3-dev \
&& rm -rf /var/lib/apt/lists/*
# Install UV package manager
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
ENV PATH="/root/.local/bin:${PATH}"
# Set working directory
WORKDIR /app
# Copy requirements first for better caching
COPY requirements.txt .
# Create venv and install dependencies
RUN uv venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"
RUN uv pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY src/ ./src/
COPY pyproject.toml .
# Install the package
RUN uv pip install -e .
# Run the MCP server
CMD ["python", "src/omcp_r/main.py"]