From aa61644704edc4b2ef231d75b537b38d0ae6d7c6 Mon Sep 17 00:00:00 2001 From: Michael Lando Date: Tue, 24 Oct 2017 11:08:18 +0300 Subject: 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 --- sdc-os-chef/sdc-backend/Dockerfile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'sdc-os-chef/sdc-backend/Dockerfile') diff --git a/sdc-os-chef/sdc-backend/Dockerfile b/sdc-os-chef/sdc-backend/Dockerfile index dd38726be3..7c6d8bf723 100644 --- a/sdc-os-chef/sdc-backend/Dockerfile +++ b/sdc-os-chef/sdc-backend/Dockerfile @@ -4,16 +4,20 @@ COPY chef-solo /root/chef-solo/ COPY chef-repo/cookbooks/. /root/chef-solo/cookbooks/ -ADD onboarding-be-*.war ${JETTY_BASE}/webapps/ +ADD onboarding-be-*.war ${JETTY_BASE}/webapps/ -ADD catalog-be-*.war ${JETTY_BASE}/webapps/ +ADD catalog-be-*.war ${JETTY_BASE}/webapps/ -ADD api-docs.war ${JETTY_BASE}/webapps/ +ADD api-docs.war ${JETTY_BASE}/webapps/ -RUN chown -R jetty:jetty ${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" ] -- cgit 1.2.3-korg