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