fffiloni commited on
Commit
0db000b
·
verified ·
1 Parent(s): 9d8aa61

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -50,8 +50,9 @@ ENV HOME=/home/user \
50
  # Set working directory
51
  WORKDIR $HOME/app
52
 
53
- # Upgrade pip and install PyTorch first
54
  RUN pip install --no-cache-dir --upgrade pip && \
 
55
  pip install --no-cache-dir torch==1.7.1 torchvision --extra-index-url https://download.pytorch.org/whl/cu113 && \
56
  python -c "import torch; print('PyTorch version:', torch.__version__)"
57
 
 
50
  # Set working directory
51
  WORKDIR $HOME/app
52
 
53
+ # Upgrade pip and install numpy<2 first, then PyTorch
54
  RUN pip install --no-cache-dir --upgrade pip && \
55
+ pip install --no-cache-dir "numpy<2" && \
56
  pip install --no-cache-dir torch==1.7.1 torchvision --extra-index-url https://download.pytorch.org/whl/cu113 && \
57
  python -c "import torch; print('PyTorch version:', torch.__version__)"
58