Skip to content

Commit 7abd789

Browse files
committed
Fix EULA
1 parent c46b8bd commit 7abd789

3 files changed

Lines changed: 17 additions & 11 deletions

File tree

Dockerfile

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ARG UBUNTU_VERSION=24.04
22

33
FROM ubuntu:${UBUNTU_VERSION}
44

5-
ARG VERSION
5+
ARG IMAGE_VERSION
66
# https://docs.nvidia.com/deeplearning/cudnn/backend/latest/reference/support-matrix.html
77
ARG CUDA_VERSION=12.6.0
88
ARG CUDNN_VERSION=9.8.0
@@ -15,7 +15,7 @@ ENV LANGUAGE=en_US.UTF-8
1515
ENV LANG=en_US.UTF-8
1616

1717
LABEL maintainer="JamesNULLiu jamesnulliu@gmail.com"
18-
LABEL version=${VERSION}
18+
LABEL version=${IMAGE_VERSION}
1919

2020
SHELL ["/bin/bash", "-c"]
2121

@@ -52,12 +52,10 @@ RUN wget -O /tmp/miniconda3.sh \
5252
mkdir -p /root/miniconda3 && \
5353
bash /tmp/miniconda3.sh -b -u -p /root/miniconda3 && \
5454
\. /root/miniconda3/bin/activate && \
55-
cat << EOF > /tmp/conda_essentials.sh && \
56-
conda activate base && \
57-
conda upgrade libstdcxx-ng -c conda-forge -y && \
58-
conda install -y nvidia/label/cuda-${CUDA_VERSION}::cuda-toolkit && \
59-
conda install -y nvidia/label/cudnn-${CUDNN_VERSION}::cudnn && \
60-
EOF && \
55+
conda activate base && \
56+
conda upgrade libstdcxx-ng -c conda-forge -y && \
57+
conda install -y nvidia/label/cuda-${CUDA_VERSION}::cuda-toolkit && \
58+
echo "y" | conda install -y nvidia/label/cudnn-${CUDNN_VERSION}::cudnn && \
6159
bash /tmp/conda_essentials.sh && \
6260
pip3 install torch==${TORCH_VERSION} torchvision torchaudio \
6361
--index-url https://download.pytorch.org/whl/cu126 \

scripts/.image-configs.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1-
IMAGE_VERSION=2.0.1
2-
IMAGE_TAG=v${IMAGE_VERSION}-torch2.7-cuda12.6-ubuntu24.04
1+
IMAGE_VERSION=2.0.2
2+
TORCH_VERSION=2.7.0
3+
CUDA_VERSION=12.6.0
4+
CUDNN_VERSION=9.8.0
5+
UBUNTU_VERSION=24.04
6+
IMAGE_TAG=v${IMAGE_VERSION}-torch${TORCH_VERSION}-cuda${CUDA_VERSION}-ubuntu${UBUNTU_VERSION}
37
IMAGE_NAME=jamesnulliu/deeplearning:${IMAGE_TAG}

scripts/build.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ echo $IMAGE_VERSION
55

66
docker build \
77
-f Dockerfile \
8-
--build-arg VERSION=$IMAGE_VERSION \
8+
--build-arg IMAGE_VERSION=$IMAGE_VERSION \
9+
--build-arg TORCH_VERSION=$TORCH_VERSION \
10+
--build-arg CUDA_VERSION=$CUDA_VERSION \
11+
--build-arg UBUNTU_VERSION=$UBUNTU_VERSION \
12+
--build-arg CUDNN_VERSION=$CUDNN_VERSION \
913
-t $IMAGE_NAME \
1014
.

0 commit comments

Comments
 (0)