grasepard2 commited on
Commit
a2c87be
·
verified ·
1 Parent(s): 387e523

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -5
Dockerfile CHANGED
@@ -3,18 +3,13 @@ FROM python:3.10-slim
3
  ENV DEBIAN_FRONTEND=noninteractive
4
  ENV PYTHONDONTWRITEBYTECODE=1
5
  ENV PYTHONUNBUFFERED=1
6
-
7
  ENV GRADIO_SERVER_NAME=0.0.0.0
8
  ENV GRADIO_SERVER_PORT=7860
9
 
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
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
  ENV PYTHONDONTWRITEBYTECODE=1
5
  ENV PYTHONUNBUFFERED=1
 
6
  ENV GRADIO_SERVER_NAME=0.0.0.0
7
  ENV GRADIO_SERVER_PORT=7860
8
 
9
  WORKDIR /app
10
  COPY . /app
11
 
 
 
12
  RUN pip install --no-cache-dir -r requirements.txt
 
 
13
  RUN pip install --no-cache-dir --force-reinstall huggingface_hub==0.24.7
14
 
15
  EXPOSE 7860