Spaces:
Runtime error
Runtime error
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"] |