-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (26 loc) · 1.05 KB
/
Copy pathDockerfile
File metadata and controls
34 lines (26 loc) · 1.05 KB
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.11-slim
# System deps for lxml and httpx
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
libxml2-dev \
libxslt-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Install Python dependencies before copying source
# (layer caching: deps change less often than code)
# Copy source first so editable install has all files
COPY pyproject.toml README.md ./
COPY aria/ ./aria/
COPY config/ ./config/
COPY scripts/ ./scripts/
RUN pip install --no-cache-dir -e ".[dev]"
# Runtime data directories — mount as volumes in production
RUN mkdir -p data/sessions data/notes
# Non-root user for security
RUN useradd -m -u 1000 aria && chown -R aria:aria /app
USER aria
# Health check — verify the tool registry loads cleanly
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD python -c "import aria.tools.calendar, aria.tools.email, aria.tools.tasks, aria.tools.research; from aria.agent.registry import registry; assert registry.count() >= 50" || exit 1
ENTRYPOINT ["aria"]
CMD ["--help"]