admin08077 commited on
Commit
5b3754f
·
verified ·
1 Parent(s): e63a498

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -4
Dockerfile CHANGED
@@ -14,13 +14,14 @@ RUN npm install -g @stoplight/prism-cli
14
  WORKDIR /app
15
 
16
  # 3. Clone your repo directly into the container
17
- # This fixes the "pyproject.toml not found" error because we control the path
18
  RUN git clone https://github.com/diplomat-bit/aibank.git .
19
 
20
- # 4. Install the SDK and UI requirements
21
- RUN pip install --no-cache-dir . gradio PyYAML
 
 
22
 
23
- # 5. Copy the app script (we will create this next)
24
  COPY app.py .
25
 
26
  EXPOSE 7860
 
14
  WORKDIR /app
15
 
16
  # 3. Clone your repo directly into the container
 
17
  RUN git clone https://github.com/diplomat-bit/aibank.git .
18
 
19
+ # 4. Install Python dependencies
20
+ # We explicitly update huggingface_hub and pin gradio to fix the HfFolder error
21
+ RUN pip install --no-cache-dir --upgrade pip && \
22
+ pip install --no-cache-dir "huggingface_hub>=0.25.0" "gradio>=4.0.0,<5.0.0" PyYAML .
23
 
24
+ # 5. Copy the app script from your Space files into the container
25
  COPY app.py .
26
 
27
  EXPOSE 7860