Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Use non-root user in Dockerfile
[nonrtric.git]
/
test
/
prodstub
/
Dockerfile
diff --git
a/test/prodstub/Dockerfile
b/test/prodstub/Dockerfile
index
4768bf9
..
0a027e4
100644
(file)
--- a/
test/prodstub/Dockerfile
+++ b/
test/prodstub/Dockerfile
@@
-32,4
+32,8
@@
RUN chmod +x start.sh
RUN apt-get update
RUN apt-get install -y nginx=1.14.*
+RUN groupadd -g 999 appuser && \
+ useradd -r -u 999 -g appuser appuser
+USER appuser
+
CMD [ "./start.sh" ]