summaryrefslogtreecommitdiffstats
path: root/deliveries
diff options
context:
space:
mode:
authorPawel Wieczorek <p.wieczorek2@samsung.com>2020-03-30 11:43:19 +0200
committerPawel Wieczorek <p.wieczorek2@samsung.com>2020-04-02 11:25:14 +0200
commit048ca4538f32b27667271d1a32f5a95b0731f1f9 (patch)
treef8f42fd54656c607a689fad27a49e39fe2fb47ef /deliveries
parent047385e55632a1dd6398e414aa82397f380e449f (diff)
Migrate Dockerfile.portal to unprivileged user
Issue-ID: PORTAL-849 Change-Id: I3060de8beddcba03be45f19ce8cd1fd0e32e62f5 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
Diffstat (limited to 'deliveries')
-rw-r--r--deliveries/Dockerfile.portal4
1 files changed, 4 insertions, 0 deletions
diff --git a/deliveries/Dockerfile.portal b/deliveries/Dockerfile.portal
index f12a3e30..cce3ed09 100644
--- a/deliveries/Dockerfile.portal
+++ b/deliveries/Dockerfile.portal
@@ -41,6 +41,10 @@ COPY ${FE_DIR} ${PORTALCONTEXT}/public
VOLUME ${TOMCATHOME}/logs
+# Switch to unprivileged user
+RUN addgroup -g 1000 -S portal && adduser -u 1000 -S portal -G portal
+USER portal
+
# Switch back to root
WORKDIR /