Skip to content

Commit 745c6e1

Browse files
authored
Update Dockerfile
Reduces image size and re-organizes install list for clarity.
1 parent f5805db commit 745c6e1

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

docker/ubuntu22.04-cuda12.2.0/Dockerfile

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@ FROM nvidia/cuda:12.2.0-devel-ubuntu22.04
22
LABEL maintainer="[email protected]"
33

44
RUN apt update && \
5-
apt install -y \
6-
software-properties-common && \
7-
apt-add-repository multiverse && \
8-
apt update && \
9-
apt install -y \
5+
apt install -y --no-install-recommends \
106
build-essential \
117
g++ \
128
make \
@@ -25,11 +21,13 @@ RUN apt update && \
2521
gfortran \
2622
patch \
2723
ffmpeg \
28-
vim \
29-
python2-dev \
30-
python3-dev && \
24+
vim && \
25+
apt update && \
26+
apt install -y --no-install-recommends\
27+
software-properties-common && \
28+
apt-add-repository multiverse && \
3129
apt update && \
32-
yes | DEBIAN_FRONTEND=noninteractive apt install -yqq \
30+
yes | DEBIAN_FRONTEND=noninteractive apt install -yqq --no-install-recommends\
3331
intel-mkl && \
3432
rm -rf /var/lib/apt/lists/*
3533

0 commit comments

Comments
 (0)