FROM python:3.11-slim WORKDIR /app # Install docker CLI for code executor RUN apt-get update && apt-get install -y \ docker.io \ && rm -rf /var/lib/apt/lists/* COPY requirements.txt . RUN pip install -r requirements.txt COPY . . EXPOSE 7081 # NOTE: Running with single worker to maintain SESSIONS global state in Intake. # If scaling to multiple workers, migrate SESSIONS to Redis or shared storage. CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7081"]