-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (19 loc) · 758 Bytes
/
Copy pathDockerfile
File metadata and controls
25 lines (19 loc) · 758 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
# --- builder ----------------------------------------------------------
FROM python:3.11-slim AS builder
ENV PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1
WORKDIR /app
RUN python -m venv /venv
ENV PATH="/venv/bin:$PATH"
# 1️⃣ copy the whole project *including* src/ and README.md
COPY . .
# 2️⃣ install runtime deps + *your* package (include dev extras if you like)
RUN pip install --upgrade pip \
&& pip install --no-cache-dir ".[dev]"
# --- runtime image ----------------------------------------------------
FROM python:3.11-slim
WORKDIR /app
COPY --from=builder /venv /venv
ENV PATH="/venv/bin:$PATH"
COPY src src
COPY README.md pyproject.toml agent-production.yaml .
CMD ["a2a-server", "--config", "agent-production.yaml"]