-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
34 lines (27 loc) · 1020 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM nvidia/cuda:12.3.2-cudnn9-devel-ubuntu22.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
echo "tzdata tzdata/Areas select Etc" > /tmp/preseed.txt && \
echo "tzdata tzdata/Zones/Etc select UTC" >> /tmp/preseed.txt && \
debconf-set-selections /tmp/preseed.txt && \
apt-get install -y --no-install-recommends \
tzdata \
build-essential \
curl \
ca-certificates \
gnupg \
pkg-config \
libssl-dev \
lsb-release \
software-properties-common \
clang \
libopenblas-dev && \
rm -rf /var/lib/apt/lists/*
RUN curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | apt-key add - && \
curl -s -L https://nvidia.github.io/nvidia-docker/ubuntu20.04/nvidia-docker.list | tee /etc/apt/sources.list.d/nvidia-docker.list && \
apt-get update
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH=/root/.cargo/bin:$PATH
# home directory
WORKDIR /home
CMD ["bash"]