FROM python:3.9-slim # 1. Install System Dependencies 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 RUN git clone https://github.com/diplomat-bit/aibank.git . # 4. Install Python dependencies with PINNED versions # This specific combination fixes the 'HfFolder' ImportError RUN pip install --no-cache-dir --upgrade pip && \ pip install --no-cache-dir "huggingface_hub==0.24.0" "gradio==4.44.1" "PyYAML" . # 5. Copy the app script from your Space files into the container # Ensure app.py is in your Hugging Face file list COPY app.py . EXPOSE 7860 CMD ["python", "app.py"]