Skip to content
Snippets Groups Projects

Dockerfile: nvidia/cuda base

Closed Wouter Deconinck requested to merge wdconinc-master-patch-19764 into master
Compare and
3 files
+ 87
23
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -3,7 +3,7 @@
@@ -3,7 +3,7 @@
# Minimal container based on Debian Testing for up-to-date packages.
# Minimal container based on Debian Testing for up-to-date packages.
# Very lightweight container with a minimal build environment
# Very lightweight container with a minimal build environment
FROM amd64/debian:testing-20211220-slim
FROM nvidia/cuda:11.3.1-base-ubuntu20.04
LABEL maintainer="Sylvester Joosten <sjoosten@anl.gov>" \
LABEL maintainer="Sylvester Joosten <sjoosten@anl.gov>" \
name="debian_base" \
name="debian_base" \
march="amd64"
march="amd64"
@@ -22,6 +22,12 @@ ENV CLICOLOR_FORCE=1 \
@@ -22,6 +22,12 @@ ENV CLICOLOR_FORCE=1 \
## this once afterburner is added to spack
## this once afterburner is added to spack
RUN --mount=type=cache,target=/var/cache/apt \
RUN --mount=type=cache,target=/var/cache/apt \
rm -f /etc/apt/apt.conf.d/docker-clean \
rm -f /etc/apt/apt.conf.d/docker-clean \
 
&& ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime \
 
&& echo "US/Eastern" > /etc/timezone \
 
&& echo "deb https://ppa.launchpadcontent.net/ubuntu-toolchain-r/test/ubuntu focal main" \
 
> /etc/apt/sources.list.d/ubuntu-toolchain.list \
 
&& apt-key adv --keyserver hkps://keyserver.ubuntu.com \
 
--recv-keys 60C317803A41BA51845E371A1E9377A2BA9EF27F \
&& apt-get -yqq update \
&& apt-get -yqq update \
&& apt-get -yqq upgrade \
&& apt-get -yqq upgrade \
&& apt-get -yqq install --no-install-recommends \
&& apt-get -yqq install --no-install-recommends \
Loading