From 7fbe27cbf900a8dd88e64b49d972fab53d6af202 Mon Sep 17 00:00:00 2001 From: Peter Solymos Date: Sun, 30 Jun 2024 23:54:18 -0600 Subject: [PATCH] Change to useradd Signed-off-by: Peter Solymos --- py-shiny/Dockerfile | 2 +- r-shiny/Dockerfile | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/py-shiny/Dockerfile b/py-shiny/Dockerfile index 41c50a1..4ff5904 100644 --- a/py-shiny/Dockerfile +++ b/py-shiny/Dockerfile @@ -1,6 +1,6 @@ FROM python:3.9 -RUN addgroup --system app && adduser --system --ingroup app app +RUN groupadd app && useradd -g app app WORKDIR /home/app COPY app/requirements.txt . diff --git a/r-shiny/Dockerfile b/r-shiny/Dockerfile index 127ab2f..83db96d 100644 --- a/r-shiny/Dockerfile +++ b/r-shiny/Dockerfile @@ -1,12 +1,7 @@ -FROM rocker/r2u:22.04 - -# FROM rocker/r2u:24.04 -# RUN apt update && apt install -y --no-install-recommends \ -# adduser \ -# && rm -rf /var/lib/apt/lists/* +FROM rocker/r2u:24.04 +RUN groupadd app && useradd -g app app RUN R -q -e "install.packages('shiny')" -RUN addgroup --system app && adduser --system --ingroup app app WORKDIR /home/app COPY app . RUN chown app:app -R /home/app