-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (20 loc) · 818 Bytes
/
Copy pathDockerfile
File metadata and controls
26 lines (20 loc) · 818 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
FROM python:3.12-slim
# Install git and other system dependencies
RUN apt-get update && apt-get install -y \
git \
build-essential \
curl \
&& rm -rf /var/lib/apt/lists/*
# Install uv for fast dependency management
RUN curl -LsSf https://astral.sh/uv/install.sh | env UV_UNMANAGED_INSTALL="/usr/local/bin" sh
WORKDIR /app
# Copy dependency files
COPY pyproject.toml uv.lock ./
# Initialize git in the vault directory preemptively just to avoid issues
RUN mkdir -p marvin_vault && cd marvin_vault && git init
# Install dependencies into system environment so uv run isn't strictly necessary
# if we wanted, but uv run handles the virtualenv perfectly.
COPY . .
RUN uv sync
# Default command for the gateway
CMD ["uv", "run", "marvin", "--transport", "sse", "--host", "0.0.0.0", "--port", "8421"]