-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (23 loc) · 871 Bytes
/
Dockerfile
File metadata and controls
33 lines (23 loc) · 871 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
FROM python:3.14-slim
WORKDIR /app
# Install system dependencies (curl for Cursor CLI installer)
RUN apt-get update && apt-get install -y --no-install-recommends curl && \
rm -rf /var/lib/apt/lists/*
# Install Cursor Agent CLI
RUN curl https://cursor.com/install -fsS | bash && \
ln -sf /root/.local/bin/agent /usr/local/bin/agent
# Install Python dependencies first for better layer caching
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY ragent/ ./ragent/
# Copy MCP configuration for Cursor Agent
COPY ragent/mcp/mcp.json /root/.cursor/mcp.json
# data/ is mounted as volume, not copied
# logs/ is created at runtime
# Copy entrypoint script and make it executable
COPY entrypoint.sh ./
RUN chmod +x ./entrypoint.sh
# Set entrypoint
ENTRYPOINT ["./entrypoint.sh"]
CMD ["python", "-m", "ragent"]