Skip to content

Commit d051361

Browse files
committed
cré user en dernier
1 parent 3ba142d commit d051361

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,17 @@ 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-
4035
WORKDIR /home/app
4136
COPY . .
4237

4338
# Rendre le script exécutable
4439
RUN chmod +x docker-entrypoint.sh
4540

41+
# Créa utilisateur applicatif
42+
RUN groupadd --gid 10001 -r shiny \
43+
&& useradd --uid 10001 -d /home/shiny -m -r -s /bin/false -g shiny shiny
44+
USER shiny
45+
4646
EXPOSE 3838
4747

4848
ENTRYPOINT ["./docker-entrypoint.sh"]

0 commit comments

Comments
 (0)