grasepard2 commited on
Commit
f0b0c67
·
verified ·
1 Parent(s): 93e3368

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -9
Dockerfile CHANGED
@@ -10,17 +10,13 @@ ENV GRADIO_SERVER_PORT=7860
10
  WORKDIR /app
11
  COPY . /app
12
 
13
- # Python deps (from requirements.txt)
 
14
  RUN pip install --no-cache-dir -r requirements.txt
15
 
16
- # Notebook execution deps
17
- RUN pip install --no-cache-dir notebook ipykernel papermill
18
-
19
- # Pre-install packages the notebooks use via !pip install
20
- RUN pip install --no-cache-dir textblob faker vaderSentiment transformers
21
-
22
- RUN python -m ipykernel install --user --name python3 --display-name "Python 3"
23
 
24
  EXPOSE 7860
25
 
26
- CMD ["python", "app.py"]
 
10
  WORKDIR /app
11
  COPY . /app
12
 
13
+ # Install requirements first, then force-reinstall huggingface_hub at the end
14
+ # to override anything that other deps might bring in
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
17
+ # Force the correct huggingface_hub version (must come AFTER all other installs)
18
+ RUN pip install --no-cache-dir --force-reinstall huggingface_hub==0.24.7
 
 
 
 
 
19
 
20
  EXPOSE 7860
21
 
22
+ CMD ["python", "app.py"]