commit | e41d28ca88de6e25a3a69b4af980aee937087f37 | [log] [tgz] |
---|---|---|
author | ecaiyanlinux <martin.c.yan@est.tech> | Wed Dec 01 16:18:36 2021 +0100 |
committer | Chengkai YAN <martin.c.yan@est.tech> | Thu Dec 02 07:59:06 2021 +0000 |
tree | 6b2cf078b39a75c30950735fea4a0b85f20903a2 | |
parent | 0268b146cb35f0b5cdc4f8deb2668055bc4ce940 [diff] |
Use non-root user in Dockerfile Signed-off-by: ecaiyanlinux <martin.c.yan@est.tech> Issue-ID: NONRTRIC-656 Change-Id: Ib85abd9de806b30b73af34a863b06c7663026c3d
diff --git a/test/prodstub/Dockerfile b/test/prodstub/Dockerfile index 4768bf9..0a027e4 100644 --- a/test/prodstub/Dockerfile +++ b/test/prodstub/Dockerfile
@@ -32,4 +32,8 @@ 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" ]