-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (17 loc) · 791 Bytes
/
Copy pathDockerfile
File metadata and controls
25 lines (17 loc) · 791 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
FROM python:3.11-slim
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
git curl && rm -rf /var/lib/apt/lists/*
COPY pyproject.toml .
COPY chronos/ chronos/
COPY scripts/ scripts/
# Pre-install packages that pip's backtracking resolver can silently drop
# when resolving the large litellm+langgraph dependency graph.
RUN pip install --no-cache-dir "slowapi>=0.1.9" "sse-starlette>=2.1.0" "falkordb>=1.0.0"
RUN pip install --no-cache-dir . && \
useradd -m -u 1000 chronos && \
chown -R chronos /app
USER chronos
HEALTHCHECK --interval=30s --timeout=10s --start-period=30s --retries=3 \
CMD curl -fsS "http://localhost:${PORT:-8100}/api/v1/health" || exit 1
CMD ["sh", "-c", "uvicorn chronos.main:app --host 0.0.0.0 --port ${PORT:-8100}"]