update
Browse files- Dockerfile +6 -6
Dockerfile
CHANGED
@@ -1,16 +1,10 @@
|
|
1 |
# FROM nvidia/cuda:11.1.1-devel-ubuntu20.04
|
2 |
FROM nvidia/cuda:11.8.0-devel-ubuntu22.04
|
3 |
|
4 |
-
RUN useradd -m -u 1000 user
|
5 |
-
USER user
|
6 |
-
|
7 |
ENV CUDA_HOME=/usr/local/cuda
|
8 |
ENV PATH=${CUDA_HOME}/bin:/home/user/.local/bin:${PATH}
|
9 |
ENV LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${LD_LIBRARY_PATH}
|
10 |
ENV LIBRARY_PATH=${CUDA_HOME}/lib64/stubs:${LIBRARY_PATH}
|
11 |
-
ENV TORCH_EXTENSIONS_DIR=/home/user/.cache
|
12 |
-
|
13 |
-
WORKDIR /home/user
|
14 |
|
15 |
# apt install by root user
|
16 |
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
@@ -30,6 +24,12 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
|
|
30 |
wget \
|
31 |
&& rm -rf /var/lib/apt/lists/*
|
32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
# RUN pip install torch==1.9.1+cu111 torchvision==0.10.1+cu111 torchaudio==0.9.1 -f https://download.pytorch.org/whl/torch_stable.html
|
34 |
RUN pip install torch==2.0.0 torchvision==0.15.1 torchaudio==2.0.1 --index-url https://download.pytorch.org/whl/cu118
|
35 |
|
|
|
1 |
# FROM nvidia/cuda:11.1.1-devel-ubuntu20.04
|
2 |
FROM nvidia/cuda:11.8.0-devel-ubuntu22.04
|
3 |
|
|
|
|
|
|
|
4 |
ENV CUDA_HOME=/usr/local/cuda
|
5 |
ENV PATH=${CUDA_HOME}/bin:/home/user/.local/bin:${PATH}
|
6 |
ENV LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${LD_LIBRARY_PATH}
|
7 |
ENV LIBRARY_PATH=${CUDA_HOME}/lib64/stubs:${LIBRARY_PATH}
|
|
|
|
|
|
|
8 |
|
9 |
# apt install by root user
|
10 |
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
|
|
24 |
wget \
|
25 |
&& rm -rf /var/lib/apt/lists/*
|
26 |
|
27 |
+
RUN useradd -m -u 1000 user
|
28 |
+
USER user
|
29 |
+
|
30 |
+
ENV TORCH_EXTENSIONS_DIR=/home/user/.cache
|
31 |
+
WORKDIR /home/user
|
32 |
+
|
33 |
# RUN pip install torch==1.9.1+cu111 torchvision==0.10.1+cu111 torchaudio==0.9.1 -f https://download.pytorch.org/whl/torch_stable.html
|
34 |
RUN pip install torch==2.0.0 torchvision==0.15.1 torchaudio==2.0.1 --index-url https://download.pytorch.org/whl/cu118
|
35 |
|