ameythakur commited on
Commit
66122d4
·
verified ·
1 Parent(s): a043bcc

DEPRESSION-DETECTION

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -19,8 +19,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
19
  build-essential \
20
  && rm -rf /var/lib/apt/lists/*
21
 
22
- # Pre-install build dependencies to ensure wheels are preferred and builds are stable
23
- RUN pip install --upgrade pip setuptools==57.5.0 wheel cython
 
 
24
 
25
  # Install project dependencies
26
  # Note: Path is relative to the repository root where Dockerfile resides
 
19
  build-essential \
20
  && rm -rf /var/lib/apt/lists/*
21
 
22
+ # Downgrade build tools to legacy-compatible versions
23
+ # This is required to handle the outdated syntax in spacy 2.2.0's sub-dependencies
24
+ RUN pip install --upgrade "pip<23.1" "setuptools<58.0" "wheel<0.41.0"
25
+ RUN pip install "packaging<22.0" "cython<3.0"
26
 
27
  # Install project dependencies
28
  # Note: Path is relative to the repository root where Dockerfile resides