guohanghui commited on
Commit
246cbb4
·
verified ·
1 Parent(s): e2f87ea

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -3
Dockerfile CHANGED
@@ -18,10 +18,13 @@ WORKDIR /app
18
  COPY --chown=user ./requirements.txt requirements.txt
19
 
20
  # Install build dependencies first with compatible versions
21
- RUN pip install --no-cache-dir "setuptools<60" "numpy<1.24" "Cython<3.0"
22
 
23
- # Install remaining requirements, preferring binary wheels
24
- RUN pip install --no-cache-dir --prefer-binary -r requirements.txt
 
 
 
25
 
26
  COPY --chown=user . /app
27
  ENV MCP_TRANSPORT=http
 
18
  COPY --chown=user ./requirements.txt requirements.txt
19
 
20
  # Install build dependencies first with compatible versions
21
+ RUN pip install --no-cache-dir "setuptools<60" "numpy==1.21.6" "Cython<3.0" "scipy>=1.7.0"
22
 
23
+ # Install scikit-learn without build isolation to use our numpy 1.21.6
24
+ RUN pip install --no-cache-dir --no-build-isolation "scikit-learn>=0.24.0,<0.25.0"
25
+
26
+ # Install remaining requirements
27
+ RUN pip install --no-cache-dir -r requirements.txt
28
 
29
  COPY --chown=user . /app
30
  ENV MCP_TRANSPORT=http