Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
gary-boon
Claude Opus 4.5
commited on
Commit
·
772fc80
1
Parent(s):
a4927aa
Fix numcodecs ARM64 compatibility in Dockerfile.spark
Browse files- Skip torch from requirements (already installed with CUDA)
- Upgrade numcodecs to >=0.13.0 (ARM64 compatible)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- docker/Dockerfile.spark +4 -2
docker/Dockerfile.spark
CHANGED
|
@@ -19,9 +19,11 @@ RUN pip3 install --no-cache-dir \
|
|
| 19 |
torch \
|
| 20 |
--index-url https://download.pytorch.org/whl/cu124
|
| 21 |
|
| 22 |
-
# Copy and install
|
| 23 |
COPY requirements.txt .
|
| 24 |
-
RUN
|
|
|
|
|
|
|
| 25 |
|
| 26 |
# Copy backend code
|
| 27 |
COPY backend/ ./backend/
|
|
|
|
| 19 |
torch \
|
| 20 |
--index-url https://download.pytorch.org/whl/cu124
|
| 21 |
|
| 22 |
+
# Copy requirements and install (excluding torch since we installed it above)
|
| 23 |
COPY requirements.txt .
|
| 24 |
+
RUN grep -v "^torch==" requirements.txt > requirements-spark.txt && \
|
| 25 |
+
sed -i 's/numcodecs==0.11.0/numcodecs>=0.13.0/' requirements-spark.txt && \
|
| 26 |
+
pip3 install --no-cache-dir -r requirements-spark.txt
|
| 27 |
|
| 28 |
# Copy backend code
|
| 29 |
COPY backend/ ./backend/
|