Kangarroar commited on
Commit
e8d3a39
1 Parent(s): 3a90ba3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -17
Dockerfile CHANGED
@@ -1,20 +1,4 @@
1
- FROM python:3.8.10
2
-
3
- ADD file:8cba976cb6ea226de769a768ee274e7679d34f923c93392f340680dc6696232e in /
4
- CMD ["bash"]
5
- ENV NVARCH=sbsa
6
- ENV NVIDIA_REQUIRE_CUDA=cuda>=12.0
7
- ENV NV_CUDA_CUDART_VERSION=12.0.107-1
8
- ARG TARGETARCH
9
- RUN |1 TARGETARCH=arm64 /bin/sh -c apt-get update && apt-get install -y --no-install-recommends gnupg2 curl ca-certificates && curl -fsSL https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/${NVARCH}/3bf863cc.pub | apt-key add - && echo "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/${NVARCH} /" > /etc/apt/sources.list.d/cuda.list && apt-get purge --autoremove -y curl && rm -rf /var/lib/apt/lists/* # buildkit
10
- ENV CUDA_VERSION=12.0.0
11
- RUN |1 TARGETARCH=arm64 /bin/sh -c apt-get update && apt-get install -y --no-install-recommends cuda-cudart-12-0=${NV_CUDA_CUDART_VERSION} ${NV_CUDA_COMPAT_PACKAGE} && rm -rf /var/lib/apt/lists/* # buildkit
12
- RUN |1 TARGETARCH=arm64 /bin/sh -c echo "/usr/local/nvidia/lib" >> /etc/ld.so.conf.d/nvidia.conf && echo "/usr/local/nvidia/lib64" >> /etc/ld.so.conf.d/nvidia.conf # buildkit
13
- ENV PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
14
- ENV LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64
15
- COPY NGC-DL-CONTAINER-LICENSE / # buildkit
16
- ENV NVIDIA_VISIBLE_DEVICES=all
17
- ENV NVIDIA_DRIVER_CAPABILITIES=compute,utility
18
 
19
  ARG DEBIAN_FRONTEND=noninteractive
20
  ENV PYTHONUNBUFFERED=1
 
1
+ FROM basisai/python-cuda:3.8.6-10.1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
  ARG DEBIAN_FRONTEND=noninteractive
4
  ENV PYTHONUNBUFFERED=1