SEUyishu commited on
Commit
8a7b3fc
·
verified ·
1 Parent(s): 4123007

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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 first (CPU version)
14
- RUN pip install --no-cache-dir torch --index-url https://download.pytorch.org/whl/cpu
15
 
16
- # Install PyTorch Geometric dependencies with pre-built wheels
17
- RUN pip install --no-cache-dir torch-scatter torch-sparse torch-cluster torch-spline-conv -f https://data.pyg.org/whl/torch-2.5.0+cpu.html
 
 
 
 
 
 
 
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