-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (18 loc) · 813 Bytes
/
Dockerfile
File metadata and controls
29 lines (18 loc) · 813 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
FROM python:3.12-slim-bookworm
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
PATH="/app/.venv/bin:$PATH" \
MCP_ARGS="--config /app/config/config.yaml --transport http --host 0.0.0.0 --port 8000"
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
supervisor \
&& rm -rf /var/lib/apt/lists/*
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
WORKDIR /app
COPY pyproject.toml uv.lock ./
RUN uv sync --frozen --no-dev --no-install-project --extra postgres --extra cohere --extra gemini --extra openai
COPY . .
RUN uv sync --frozen --no-dev --extra postgres --extra cohere --extra gemini --extra openai
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
EXPOSE 8000 8080
CMD ["supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]