File size: 1,425 Bytes
a059241
 
 
 
 
 
 
 
 
 
03f3959
 
 
a059241
 
 
 
 
 
 
 
 
 
03f3959
a059241
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
37
38
39
40
41
42
43
44
45
46
47
48
FROM python:3.10-slim

WORKDIR /app

# Install system dependencies (including ffmpeg for audio)
RUN apt-get update && \
    apt-get install -y --no-install-recommends \
        build-essential \
        gcc \
        ffmpeg \
        supervisor && \ 
        apt-get clean && \
        rm -rf /var/lib/apt/lists/*

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy all application code
# Ensure these paths correctly copy all your necessary modules
COPY ./agents /app/agents
COPY ./data_ingestion /app/data_ingestion
COPY ./orchestrator /app/orchestrator
COPY ./streamlit /app/streamlit
COPY ./example_portfolio.json /app/example_portfolio.json 

COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf


ENV GEMINI_MODEL_NAME="gemini-1.5-flash-latest"
ENV WHISPER_MODEL_SIZE="small"
ENV FAISS_INDEX_PATH="/app/faiss_index_store" 


ENV AGENT_API_URL="http://localhost:8001"
ENV AGENT_SCRAPING_URL="http://localhost:8002"
ENV AGENT_RETRIEVER_URL="http://localhost:8003"
ENV AGENT_ANALYSIS_URL="http://localhost:8004"
ENV AGENT_LANGUAGE_URL="http://localhost:8005"
ENV AGENT_VOICE_URL="http://localhost:8006"
ENV ORCHESTRATOR_URL="http://localhost:8000" 

RUN mkdir -p /app/faiss_index_store && \
    chown -R nobody:nogroup /app/faiss_index_store || true # Example, adjust user/group as needed


EXPOSE 8501

CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]