-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (24 loc) · 816 Bytes
/
Dockerfile
File metadata and controls
34 lines (24 loc) · 816 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
34
FROM python:3.13-slim AS base
# System deps for cryptography wheel
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc libffi-dev curl \
&& rm -rf /var/lib/apt/lists/*
# Install uv
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
WORKDIR /app
# Copy build metadata (hatchling needs README.md)
COPY pyproject.toml uv.lock README.md ./
# Install all dependencies including demo deps (layer cache)
COPY src/ src/
RUN uv sync --frozen
# Copy demo app
COPY demo/ demo/
# Demo entrypoint
COPY demo/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
EXPOSE 5000
# Runtime config — secrets passed at run time, not baked in
ENV AGENTWRIT_BROKER_URL=http://broker:8080
ENV LLM_BASE_URL=https://api.openai.com/v1
ENV LLM_MODEL=gpt-4o-mini
ENTRYPOINT ["/entrypoint.sh"]