Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +12 -4
Dockerfile
CHANGED
|
@@ -5,16 +5,24 @@ RUN apt-get update && \
|
|
| 5 |
apt-get install -y --no-install-recommends \
|
| 6 |
build-essential \
|
| 7 |
git \
|
|
|
|
| 8 |
&& rm -rf /var/lib/apt/lists/* && \
|
| 9 |
python -m pip install --upgrade pip
|
| 10 |
|
| 11 |
WORKDIR /app
|
| 12 |
|
| 13 |
-
# Install PyTorch
|
| 14 |
-
RUN pip install --no-cache-dir torch --index-url https://download.pytorch.org/whl/cpu
|
| 15 |
|
| 16 |
-
# Install PyTorch Geometric
|
| 17 |
-
RUN pip install --no-cache-dir
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
# Copy and install remaining requirements
|
| 20 |
COPY ./mcp_output/requirements.txt /app/requirements.txt
|
|
|
|
| 5 |
apt-get install -y --no-install-recommends \
|
| 6 |
build-essential \
|
| 7 |
git \
|
| 8 |
+
wget \
|
| 9 |
&& rm -rf /var/lib/apt/lists/* && \
|
| 10 |
python -m pip install --upgrade pip
|
| 11 |
|
| 12 |
WORKDIR /app
|
| 13 |
|
| 14 |
+
# Install specific PyTorch version (CPU)
|
| 15 |
+
RUN pip install --no-cache-dir torch==2.4.0 --index-url https://download.pytorch.org/whl/cpu
|
| 16 |
|
| 17 |
+
# Install PyTorch Geometric and extensions matching torch 2.4.0 CPU
|
| 18 |
+
RUN pip install --no-cache-dir \
|
| 19 |
+
torch-scatter \
|
| 20 |
+
torch-sparse \
|
| 21 |
+
torch-cluster \
|
| 22 |
+
torch-spline-conv \
|
| 23 |
+
-f https://data.pyg.org/whl/torch-2.4.0+cpu.html
|
| 24 |
+
|
| 25 |
+
RUN pip install --no-cache-dir torch-geometric
|
| 26 |
|
| 27 |
# Copy and install remaining requirements
|
| 28 |
COPY ./mcp_output/requirements.txt /app/requirements.txt
|