File size: 765 Bytes
a1eaa12
bbfb383
 
 
 
 
 
 
 
 
 
a1eaa12
 
 
 
a2590aa
 
 
 
d94868e
 
 
 
37a6f1f
 
 
bbfb383
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
FROM python:3.10-slim

WORKDIR /app

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

COPY app/ ./app/

ENV PYTHONPATH=/app

# Create writable cache directory for Composio
RUN mkdir -p /app/.composio && chmod 777 /app/.composio
ENV COMPOSIO_CACHE_DIR=/app/.composio

# Create writable lock directory for Composio
RUN mkdir -p /app/.composio/locks && chmod 777 /app/.composio/locks
ENV COMPOSIO_LOCK_DIR=/app/.composio/locks

# Debug: Print environment variables
RUN echo "GOOGLE_API_KEY is: $GOOGLE_API_KEY" > /app/env_debug.txt
RUN echo "COMPOSIO_API_KEY is: $COMPOSIO_API_KEY" >> /app/env_debug.txt

# Enable Composio debug logging
ENV COMPOSIO_LOGGING_LEVEL=debug

CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]