Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -4
Dockerfile
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 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,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 |
-
#
|
| 21 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 22 |
-
pip install --no-cache-dir "huggingface_hub
|
| 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
|