From a4beafe505e61f56c4eb8db00e65985215beb837 Mon Sep 17 00:00:00 2001 From: Satoshi Fujii Date: Mon, 17 Jun 2019 13:25:22 +0900 Subject: Optimize Dockerfile to reduce SDC image size Use --chown flag at ADD command instead of executing chown Issue-ID: SDC-2366 Signed-off-by: Satoshi Fujii Change-Id: I5aa36da91e45bad5f6ae0bd817a3cdf8186668d8 --- catalog-fe/sdc-frontend/Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'catalog-fe') diff --git a/catalog-fe/sdc-frontend/Dockerfile b/catalog-fe/sdc-frontend/Dockerfile index 63618fc878..a4273f3d8a 100644 --- a/catalog-fe/sdc-frontend/Dockerfile +++ b/catalog-fe/sdc-frontend/Dockerfile @@ -4,14 +4,12 @@ COPY chef-solo /root/chef-solo/ COPY chef-repo/cookbooks /root/chef-solo/cookbooks/ -ADD onboarding*.war ${JETTY_BASE}/webapps/ +ADD --chown=jetty:jetty onboarding*.war ${JETTY_BASE}/webapps/ -ADD catalog-fe-*.war ${JETTY_BASE}/webapps/ +ADD --chown=jetty:jetty 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 -- cgit 1.2.3-korg