mahiatlinux commited on
Commit
aa7ee47
·
verified ·
1 Parent(s): d7497e3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile CHANGED
@@ -10,6 +10,23 @@ RUN apt-get update && apt-get install -y \
10
  RUN curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \
11
  && echo "deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://nvidia.github.io/libnvidia-container/stable/deb/ $(. /etc/os-release; echo $UBUNTU_CODENAME) main" > /etc/apt/sources.list.d/nvidia-container-toolkit.list
12
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  # Install NVIDIA container toolkit (Check for any updated methods or URLs for Ubuntu jammy)
14
  RUN apt-get update && apt-get install -y nvidia-container-toolkit || true
15
 
 
10
  RUN curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \
11
  && echo "deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://nvidia.github.io/libnvidia-container/stable/deb/ $(. /etc/os-release; echo $UBUNTU_CODENAME) main" > /etc/apt/sources.list.d/nvidia-container-toolkit.list
12
 
13
+ # Download Python installation package
14
+ RUN curl -O https://www.python.org/ftp/python/3.9.10/Python-3.9.10.tgz
15
+
16
+ # Extract Python package
17
+ RUN tar -xf Python-3.9.10.tgz
18
+
19
+ # Change into the Python directory
20
+ WORKDIR Python-3.9.10
21
+
22
+ # Configure and install Python
23
+ RUN ./configure && make && make install
24
+
25
+ # Clean up
26
+ WORKDIR ..
27
+ RUN rm -rf Python-3.9.10 Python-3.9.10.tgz
28
+
29
+
30
  # Install NVIDIA container toolkit (Check for any updated methods or URLs for Ubuntu jammy)
31
  RUN apt-get update && apt-get install -y nvidia-container-toolkit || true
32