guohanghui commited on
Commit
dfa763e
·
verified ·
1 Parent(s): 7008db4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -20,8 +20,11 @@ COPY --chown=user ./requirements.txt requirements.txt
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
 
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 with relaxed compiler flags for GCC 14 compatibility
24
+ # GCC 14 treats -Wincompatible-pointer-types as error by default, need to disable it
25
+ ENV CFLAGS="-Wno-error=incompatible-pointer-types -Wno-error=int-conversion"
26
  RUN pip install --no-cache-dir --no-build-isolation "scikit-learn>=0.24.0,<0.25.0"
27
+ ENV CFLAGS=""
28
 
29
  # Install remaining requirements
30
  RUN pip install --no-cache-dir -r requirements.txt