From e3a6b1d37574849c2ee98d9e9edf4d70fd17b466 Mon Sep 17 00:00:00 2001 From: eitsupi <50911393+eitsupi@users.noreply.github.com> Date: Wed, 13 Nov 2024 03:46:11 +0000 Subject: [PATCH] fix: remove non-root user from the base library/ubuntu image --- build/templates/dockerfiles/cuda.Dockerfile.txt | 9 ++++++++- build/templates/dockerfiles/geospatial.Dockerfile.txt | 9 ++++++++- build/templates/dockerfiles/ml-verse.Dockerfile.txt | 9 ++++++++- build/templates/dockerfiles/ml.Dockerfile.txt | 9 ++++++++- build/templates/dockerfiles/r-ver.Dockerfile.txt | 9 ++++++++- build/templates/dockerfiles/rstudio.Dockerfile.txt | 9 ++++++++- build/templates/dockerfiles/shiny-verse.Dockerfile.txt | 9 ++++++++- build/templates/dockerfiles/shiny.Dockerfile.txt | 9 ++++++++- build/templates/dockerfiles/tidyverse.Dockerfile.txt | 9 ++++++++- build/templates/dockerfiles/verse.Dockerfile.txt | 9 ++++++++- dockerfiles/cuda_4.4.1.Dockerfile | 9 ++++++++- dockerfiles/cuda_4.4.2.Dockerfile | 9 ++++++++- dockerfiles/cuda_devel.Dockerfile | 9 ++++++++- dockerfiles/geospatial_4.4.1.Dockerfile | 9 ++++++++- dockerfiles/geospatial_4.4.2.Dockerfile | 9 ++++++++- dockerfiles/geospatial_devel.Dockerfile | 9 ++++++++- dockerfiles/ml-verse_4.4.1.Dockerfile | 9 ++++++++- dockerfiles/ml-verse_4.4.2.Dockerfile | 9 ++++++++- dockerfiles/ml-verse_devel.Dockerfile | 9 ++++++++- dockerfiles/ml_4.4.1.Dockerfile | 9 ++++++++- dockerfiles/ml_4.4.2.Dockerfile | 9 ++++++++- dockerfiles/ml_devel.Dockerfile | 9 ++++++++- dockerfiles/r-ver_4.4.1.Dockerfile | 9 ++++++++- dockerfiles/r-ver_4.4.2.Dockerfile | 9 ++++++++- dockerfiles/r-ver_devel.Dockerfile | 9 ++++++++- dockerfiles/rstudio_4.4.1.Dockerfile | 9 ++++++++- dockerfiles/rstudio_4.4.2.Dockerfile | 9 ++++++++- dockerfiles/rstudio_devel.Dockerfile | 9 ++++++++- dockerfiles/shiny-verse_4.4.1.Dockerfile | 9 ++++++++- dockerfiles/shiny-verse_4.4.2.Dockerfile | 9 ++++++++- dockerfiles/shiny-verse_devel.Dockerfile | 9 ++++++++- dockerfiles/shiny_4.4.1.Dockerfile | 9 ++++++++- dockerfiles/shiny_4.4.2.Dockerfile | 9 ++++++++- dockerfiles/shiny_devel.Dockerfile | 9 ++++++++- dockerfiles/tidyverse_4.4.1.Dockerfile | 9 ++++++++- dockerfiles/tidyverse_4.4.2.Dockerfile | 9 ++++++++- dockerfiles/tidyverse_devel.Dockerfile | 9 ++++++++- dockerfiles/verse_4.4.1.Dockerfile | 9 ++++++++- dockerfiles/verse_4.4.2.Dockerfile | 9 ++++++++- dockerfiles/verse_devel.Dockerfile | 9 ++++++++- 40 files changed, 320 insertions(+), 40 deletions(-) diff --git a/build/templates/dockerfiles/cuda.Dockerfile.txt b/build/templates/dockerfiles/cuda.Dockerfile.txt index 25aca635..c8d2754c 100644 --- a/build/templates/dockerfiles/cuda.Dockerfile.txt +++ b/build/templates/dockerfiles/cuda.Dockerfile.txt @@ -1,3 +1,5 @@ +# syntax=docker/dockerfile:1 + FROM nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04 ENV R_VERSION="{{r_version}}" @@ -12,7 +14,12 @@ ENV LANG=en_US.UTF-8 COPY scripts/bin/ /rocker_scripts/bin/ COPY scripts/setup_R.sh /rocker_scripts/setup_R.sh -RUN /rocker_scripts/setup_R.sh +RUN <