Base Image to deploy your SOFIA Agent
466
Official base image for building SOFIA (Simple Orchestrated Flow Intelligence Agent) agents.
docker pull chandralegend/sofia-base:latest
Create a Dockerfile:
FROM chandralegend/sofia-base:latest
COPY config.agent.yaml /app/config.agent.yaml
docker run -e OPENAI_API_KEY=your-key \
-e CONFIG_URL=https://example.com/config.yaml \
-p 8000:8000 your-image
docker run -e OPENAI_API_KEY=your-key \
-v $(pwd)/config.agent.yaml:/app/config.agent.yaml \
-p 8000:8000 your-image
| Variable | Description | Required |
|---|---|---|
OPENAI_API_KEY | OpenAI API key | Yes (if using OpenAI) |
CONFIG_URL | URL to download agent configuration | No |
CONFIG_PATH | Path to mounted configuration file | No |
PORT | Server port (default: 8000) | No |
DATABASE_URL | PostgreSQL connection URL | No |
REDIS_URL | Redis connection URL | No |
Enable Redis session storage by setting the REDIS_URL environment variable:
docker run -e REDIS_URL=redis://redis:6379/0 ...
Enable persistent storage by setting the DATABASE_URL environment variable:
docker run -e DATABASE_URL=postgresql+asyncpg://user:pass@localhost/dbname ...
POST /session - Create a new sessionPOST /session/{session_id}/message - Send a message to a sessionWS /ws/{session_id} - WebSocket connection for real-time interactionDELETE /session/{session_id} - End a sessionGET /session/{session_id}/history - Get session historylatest: Most recent stable versionx.y.z: Specific version releasesFor more information, visit SOFIA GitHub Repository
MIT License
Content type
Image
Digest
sha256:ea2d0ed84…
Size
84.9 MB
Last updated
over 1 year ago
docker pull chandralegend/sofia-base