-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.orchestrator
More file actions
36 lines (28 loc) · 1.16 KB
/
Dockerfile.orchestrator
File metadata and controls
36 lines (28 loc) · 1.16 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
35
36
# Lightweight Dockerfile for the AI Chat Orchestrator
# Builds a small image that runs `orchestrator_service.py` behind gunicorn
FROM python:3.11-slim
# Install runtime deps
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
curl \
&& rm -rf /var/lib/apt/lists/*
# Set workdir
WORKDIR /app
# Copy source
COPY orchestrator_service.py /app/
COPY requirements_orchestrator.txt /app/
# Install python deps
RUN pip install --no-cache-dir -r requirements_orchestrator.txt
# Expose orchestrator port
EXPOSE 5002
# Default environment variables (can be overridden at runtime)
# On macOS Docker Desktop containers, use host.docker.internal to reach services
# running on the Docker host (e.g. Phi3/ollama). This can be overridden at
# runtime or in docker-compose when deploying to different environments.
ENV PHI3_HOST=host.docker.internal
ENV PHI3_PORT=11434
ENV PHI3_MODEL=phi3.5:latest
ENV FLASK_ENV=production
# Run with gunicorn; --preload is avoided so streaming requests can be handled by workers
CMD ["gunicorn", "-b", "0.0.0.0:5002", "orchestrator_service:app", "--workers", "1", "--threads", "4", "--timeout", "120"]