File size: 857 Bytes
703ce5f
 
8bf8a60
3e1c9a6
 
 
 
 
 
 
 
 
703ce5f
 
 
3e1c9a6
 
703ce5f
8bf8a60
 
5b3754f
8bf8a60
703ce5f
5b3754f
8bf8a60
3e1c9a6
 
703ce5f
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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"]