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/cr/Dockerfile b/test/cr/Dockerfile index e66d30f..ad61ab3 100644 --- a/test/cr/Dockerfile +++ b/test/cr/Dockerfile
@@ -31,4 +31,8 @@ RUN chmod +x start.sh +RUN groupadd -g 999 appuser && \ + useradd -r -u 999 -g appuser appuser +USER appuser + CMD [ "./start.sh" ]