Skip to content

Deployment with Docker

Once your agent is working locally, you can build and deploy it in Docker:

  1. Build the image:
    docker build -t codeligence-agents:latest .
    
  2. Run it:
    docker run -p 8000:8000 --env-file .env codeligence-agents:latest
    
  3. Push to your registry (if required):
    docker tag codeligence-agents:latest <registry>/codeligence-agents:latest
    docker push <registry>/codeligence-agents:latest
    
  4. Make sure your environment variables (in .env) are also set in your production environment or passed into the container.