Juna190825 commited on
Commit
2a81777
·
verified ·
1 Parent(s): d39dd11

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -7
Dockerfile CHANGED
@@ -8,10 +8,7 @@ RUN apt-get update && apt-get install -y \
8
  g++ \
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
- # First install tenacity separately with --force-reinstall
12
- RUN pip install --no-cache-dir --force-reinstall tenacity==8.2.3
13
-
14
- # Then install other packages
15
  RUN pip install --no-cache-dir \
16
  torch==2.1.2+cpu -f https://download.pytorch.org/whl/torch_stable.html \
17
  transformers==4.36.0 \
@@ -30,7 +27,4 @@ RUN mkdir -p /cache/models /cache/datasets
30
  WORKDIR /app
31
  COPY . /app
32
 
33
- # Add this right before your CMD
34
- RUN python -c "import sys, subprocess; subprocess.check_call([sys.executable, '-m', 'pip', 'install', 'tenacity==8.2.3'])"
35
-
36
  CMD ["python", "app.py"]
 
8
  g++ \
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
+ # Install Python packages
 
 
 
12
  RUN pip install --no-cache-dir \
13
  torch==2.1.2+cpu -f https://download.pytorch.org/whl/torch_stable.html \
14
  transformers==4.36.0 \
 
27
  WORKDIR /app
28
  COPY . /app
29
 
 
 
 
30
  CMD ["python", "app.py"]