summaryrefslogtreecommitdiffstats
path: root/sdc-os-chef/sdc-frontend
diff options
context:
space:
mode:
authorMichael Lando <ml636r@att.com>2017-10-24 11:08:18 +0300
committerMichael Lando <ml636r@att.com>2017-10-24 11:08:18 +0300
commitaa61644704edc4b2ef231d75b537b38d0ae6d7c6 (patch)
treee9b3bdacf282496e9a15377e55a89cf7adf7b29b /sdc-os-chef/sdc-frontend
parentf5f8b3db15f352c5bd8489de7b499bcba2ddd2ec (diff)
Add user root for running commands
Add user root definition before run command Change-Id: I6dcb957a870ddc3524e5001203e4cc640ce94070 Issue-Id: SDC-525 Signed-off-by: Michael Lando <ml636r@att.com>
Diffstat (limited to 'sdc-os-chef/sdc-frontend')
-rw-r--r--sdc-os-chef/sdc-frontend/Dockerfile4
1 files changed, 4 insertions, 0 deletions
diff --git a/sdc-os-chef/sdc-frontend/Dockerfile b/sdc-os-chef/sdc-frontend/Dockerfile
index 7f9207d545..91980cc423 100644
--- a/sdc-os-chef/sdc-frontend/Dockerfile
+++ b/sdc-os-chef/sdc-frontend/Dockerfile
@@ -10,10 +10,14 @@ ADD onboarding*.war ${JETTY_BASE}/webapps/
ADD catalog-fe-*.war ${JETTY_BASE}/webapps/
+USER root
+
RUN chown -R jetty:jetty ${JETTY_BASE}/webapps
COPY startup.sh /root/
RUN chmod 770 /root/startup.sh
+USER jetty
+
ENTRYPOINT [ "/root/startup.sh" ]