Skip to content

Commit

Permalink
quiet up apt usages
Browse files Browse the repository at this point in the history
  • Loading branch information
tfoote committed Jan 25, 2025
1 parent 0c4a0fc commit b118eb4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/rocker/templates/cuda_snippet.Dockerfile.em
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
# https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&Distribution=Debian&target_version=11&target_type=deb_network
# https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&Distribution=Ubuntu&target_version=22.04&target_type=deb_network

# Keep the dockerfile non-interactive
# TODO(tfoote) make this more generic/shared across instances
ARG DEBIAN_FRONTEND=noninteractive

# Prerequisites
RUN apt-get update && apt-get install -y --no-install-recommends \
Expand All @@ -21,8 +18,8 @@ RUN \
\@[if download_osstring == 'debian']@
add-apt-repository contrib && \
\@[end if]@
apt-get update && \
apt-get -qy install cuda-toolkit && \
DEBIAN_FRONTEND=noninteractive apt-get update -q && \
DEBIAN_FRONTEND=noninteractive apt-get -qy install cuda-toolkit && \
rm -rf /var/lib/apt/lists/* && \
echo "Successfully installed cuda-toolkit"

Expand Down

0 comments on commit b118eb4

Please sign in to comment.