fffiloni commited on
Commit
2f498ec
·
verified ·
1 Parent(s): 7eb5f33

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -19,7 +19,7 @@ ENV DEBIAN_FRONTEND=noninteractive \
19
  TORCH_CUDA_ARCH_LIST="8.6" \
20
  CMAKE_PREFIX_PATH="/usr/local/cuda:/usr/lib/x86_64-linux-gnu/"
21
 
22
- # Override PATH so that system Python 3.9 is used in favor of Conda's Python 3.10
23
  ENV PATH="/usr/local/cuda/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin"
24
 
25
  # Install Python 3.9 and build dependencies (including those needed for NumPy)
@@ -31,10 +31,10 @@ RUN apt-get update && \
31
  cmake g++ software-properties-common gnupg2 && \
32
  rm -rf /var/lib/apt/lists/*
33
 
34
- # Set Python 3.9 as default for python3, install pip, and create symlinks
35
  RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1 && \
36
  update-alternatives --set python3 /usr/bin/python3.9 && \
37
- curl -sS https://bootstrap.pypa.io/get-pip.py | python3.9 && \
38
  ln -sf /usr/bin/python3.9 /usr/bin/python && \
39
  ln -sf /usr/bin/pip3 /usr/bin/pip
40
 
 
19
  TORCH_CUDA_ARCH_LIST="8.6" \
20
  CMAKE_PREFIX_PATH="/usr/local/cuda:/usr/lib/x86_64-linux-gnu/"
21
 
22
+ # Override PATH so that system Python 3.9 takes precedence over Condas Python 3.10
23
  ENV PATH="/usr/local/cuda/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin"
24
 
25
  # Install Python 3.9 and build dependencies (including those needed for NumPy)
 
31
  cmake g++ software-properties-common gnupg2 && \
32
  rm -rf /var/lib/apt/lists/*
33
 
34
+ # Set Python 3.9 as default for python3, install pip (using wget instead of curl), and create symlinks
35
  RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1 && \
36
  update-alternatives --set python3 /usr/bin/python3.9 && \
37
+ wget -qO- https://bootstrap.pypa.io/get-pip.py | python3.9 && \
38
  ln -sf /usr/bin/python3.9 /usr/bin/python && \
39
  ln -sf /usr/bin/pip3 /usr/bin/pip
40