Spaces:
Running
Running
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- Dockerfile.hf +5 -6
Dockerfile.hf
CHANGED
|
@@ -42,12 +42,11 @@ RUN useradd -m -u 1000 hfuser
|
|
| 42 |
|
| 43 |
WORKDIR /app
|
| 44 |
|
| 45 |
-
#
|
| 46 |
-
COPY requirements.txt .
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 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 .
|