38 lines
980 B
Docker
38 lines
980 B
Docker
# The Orchestration engine (ADR-0003): an A2A server that routes each request to
|
|
# the agent for its work and relays everything back.
|
|
#
|
|
# podman build -f Dockerfile.orchestration -t orchestration-engine .
|
|
#
|
|
# Which agents it routes to is configuration, mounted at /app/agents.yaml
|
|
# (AGENTS_FILE); deploy/agents.local.yaml is the local KAB platform's.
|
|
|
|
FROM python:3.12-slim AS builder
|
|
|
|
WORKDIR /build
|
|
COPY pyproject.toml ./
|
|
COPY execution_engine/ ./execution_engine/
|
|
COPY orchestration/ ./orchestration/
|
|
RUN pip install --no-cache-dir --prefix=/install .
|
|
|
|
|
|
FROM python:3.12-slim
|
|
|
|
ENV PYTHONUNBUFFERED=1 \
|
|
PYTHONDONTWRITEBYTECODE=1 \
|
|
A2A_HOST=0.0.0.0 \
|
|
A2A_PORT=8080 \
|
|
AGENTS_FILE=/app/agents.yaml
|
|
|
|
WORKDIR /app
|
|
|
|
RUN groupadd -g 10001 appgroup && \
|
|
useradd -u 10001 -g appgroup -s /bin/sh -m appuser
|
|
|
|
COPY --from=builder /install /usr/local
|
|
COPY deploy/agents.local.yaml /app/agents.yaml
|
|
|
|
USER appuser
|
|
EXPOSE 8080
|
|
|
|
CMD ["python", "-m", "orchestration.main"]
|