FROM python:3.9-slim-buster # Set the working directory inside the container WORKDIR /app # Install system dependencies RUN apt-get update && apt-get install -y --no-install-recommends \ git \ curl \ wget \ unzip \ && rm -rf /var/lib/apt/lists/* # Install Python dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy the SuperAGI source code into the container COPY . . # Expose the port SuperAGI runs on (default is 8001) EXPOSE 8001 # Run migrations RUN alembic upgrade head # Command to run the SuperAGI server CMD ["python", "-m", "superagi"]