Skip to content

Commit d73a5ad

Browse files
committed
add code François user shiny
1 parent 0c4f073 commit d73a5ad

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ RUN mkdir -p $(R RHOME)/etc && \
3232
echo "local(options(shiny.port = 3838, shiny.host = '0.0.0.0'))" > $(R RHOME)/etc/Rprofile.site && \
3333
echo "Sys.setenv(PATH = paste('/usr/local/bin', Sys.getenv('PATH'), sep=':'))" >> $(R RHOME)/etc/Rprofile.site
3434

35+
# Créa utilisateur applicatif
36+
RUN groupadd --gid 10001 -r shiny \
37+
&& useradd --uid 10001 -d /home/shiny -m -r -s /bin/false -g shiny shiny \
38+
USER shiny
39+
3540
WORKDIR /home/app
3641
COPY . .
3742

0 commit comments

Comments
 (0)