Saibalaji Namburi commited on
Commit
75223ce
·
1 Parent(s): a0fe11c

fix(hf): use requirements-ci.txt in Dockerfile.hf to avoid pywin32 and pyspark on Linux

Browse files
Files changed (1) hide show
  1. Dockerfile.hf +5 -6
Dockerfile.hf CHANGED
@@ -42,12 +42,11 @@ RUN useradd -m -u 1000 hfuser
42
 
43
  WORKDIR /app
44
 
45
- # Install lightweight requirements (no PySpark, no JDK)
46
- COPY requirements.txt .
47
- # Filter out PySpark from requirements for HF deployment
48
- RUN grep -v "pyspark" requirements.txt > requirements_hf.txt \
49
- && pip install --no-cache-dir -r requirements_hf.txt \
50
- && rm requirements_hf.txt
51
 
52
  COPY src/ ./src/
53
  COPY pyproject.toml .
 
42
 
43
  WORKDIR /app
44
 
45
+ # Use the slim CI requirements file — already Linux-safe (no pywin32, pyspark, etc.)
46
+ COPY requirements-ci.txt .
47
+ RUN pip install --no-cache-dir \
48
+ --extra-index-url https://download.pytorch.org/whl/cpu \
49
+ -r requirements-ci.txt
 
50
 
51
  COPY src/ ./src/
52
  COPY pyproject.toml .