FROM python:3.9-slim # 1. Install System Dependencies (Node, Git, Curl) RUN apt-get update && apt-get install -y \ curl \ git \ && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \ && apt-get install -y nodejs \ && apt-get clean # 2. Install Prism Mock Server RUN npm install -g @stoplight/prism-cli WORKDIR /app # 3. Clone your repo directly into the container # This fixes the "pyproject.toml not found" error because we control the path RUN git clone https://github.com/diplomat-bit/aibank.git . # 4. Install the SDK and UI requirements RUN pip install --no-cache-dir . gradio PyYAML # 5. Copy the app script (we will create this next) COPY app.py . EXPOSE 7860 CMD ["python", "app.py"]