forked from cardea-mcp/RustCoder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (26 loc) · 1.05 KB
/
Dockerfile
File metadata and controls
36 lines (26 loc) · 1.05 KB
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
# Base image with Python and Rust
FROM python:3.11-bullseye
# Install Rust toolchain
RUN apt-get update && apt-get install -y curl build-essential && \
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && \
. $HOME/.cargo/env
# Add cargo to PATH
ENV PATH="/root/.cargo/bin:${PATH}"
# Install openmcp proxy via the installer
RUN curl -sSfL 'https://raw.githubusercontent.com/decentralized-mcp/proxy/refs/heads/master/install.sh' | bash || true
# Ensure Cardea is available in PATH
ENV PATH="/root/.local/bin:${PATH}"
# Verify installation (optional, helps debugging)
RUN cardea --version || echo "Cardea installed but version check skipped"
# Set working directory
WORKDIR /app
# Install pip dependencies first for better caching
COPY requirements.txt .
RUN pip install --no-cache-dir -U pip && \
pip install --no-cache-dir openai && \
pip install --no-cache-dir cmcp mcp-python mcp-proxy && \
pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Create necessary directories
RUN mkdir -p output