Skip to content

Commit

Permalink
Change to useradd
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Solymos <psolymos@gmail.com>
  • Loading branch information
psolymos committed Jul 1, 2024
1 parent 7ba2d2c commit 7fbe27c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion py-shiny/Dockerfile
Original file line number Diff line number Diff line change
@@ -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 .
Expand Down
9 changes: 2 additions & 7 deletions r-shiny/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 7fbe27c

Please sign in to comment.