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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -4
Dockerfile CHANGED
@@ -1,6 +1,6 @@
1
  FROM python:3.9-slim
2
 
3
- # 1. Install System Dependencies (Node, Git, Curl)
4
  RUN apt-get update && apt-get install -y \
5
  curl \
6
  git \
@@ -16,12 +16,13 @@ WORKDIR /app
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
 
1
  FROM python:3.9-slim
2
 
3
+ # 1. Install System Dependencies
4
  RUN apt-get update && apt-get install -y \
5
  curl \
6
  git \
 
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 with PINNED versions
20
+ # This specific combination fixes the 'HfFolder' ImportError
21
  RUN pip install --no-cache-dir --upgrade pip && \
22
+ pip install --no-cache-dir "huggingface_hub==0.24.0" "gradio==4.44.1" "PyYAML" .
23
 
24
  # 5. Copy the app script from your Space files into the container
25
+ # Ensure app.py is in your Hugging Face file list
26
  COPY app.py .
27
 
28
  EXPOSE 7860