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-be/sdc-backend/Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'catalog-be/sdc-backend/Dockerfile') diff --git a/catalog-be/sdc-backend/Dockerfile b/catalog-be/sdc-backend/Dockerfile index 7fd978947f..fc0c9cffa2 100644 --- a/catalog-be/sdc-backend/Dockerfile +++ b/catalog-be/sdc-backend/Dockerfile @@ -4,12 +4,10 @@ COPY chef-solo /root/chef-solo/ COPY chef-repo/cookbooks/. /root/chef-solo/cookbooks/ -ADD catalog-be-*.war ${JETTY_BASE}/webapps/ +ADD --chown=jetty:jetty catalog-be-*.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