Code Review
/
multicloud
/
k8s.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
9323221
)
Using the --chown flag to reduce image size
67/84967/1
author
Kiran Kamineni
<kiran.k.kamineni@intel.com>
Wed, 10 Apr 2019 23:56:34 +0000
(16:56 -0700)
committer
Kiran Kamineni
<kiran.k.kamineni@intel.com>
Wed, 10 Apr 2019 23:56:37 +0000
(16:56 -0700)
Patch to reduce the size of the docker image
for multicloud/k8s image
Reduces size by about 300mb
Issue-ID: MULTICLOUD-350
Change-Id: I240c57267180c020b659795ea965f5c0877252fc
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
deployments/Dockerfile
patch
|
blob
|
history
diff --git
a/deployments/Dockerfile
b/deployments/Dockerfile
index
961f676
..
1dcb5a3
100644
(file)
--- a/
deployments/Dockerfile
+++ b/
deployments/Dockerfile
@@
-31,10
+31,11
@@
RUN apt-get update && apt-get install -y -qq apt-transport-https curl \
&& apt-get update && apt install -y -qq ovn-common
WORKDIR /opt/multicloud/k8s
-ADD ./k8plugin ./
-ADD ./*.so ./
RUN chown onap:onap /opt/multicloud/k8s -R
+ADD --chown=onap ./k8plugin ./
+ADD --chown=onap ./bin/*.so ./
+
USER onap
CMD ["./k8plugin"]