diff options
author | Bin Yang <bin.yang@windriver.com> | 2019-04-11 05:47:51 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-04-11 05:47:51 +0000 |
commit | ebc64fad1d60f14c607db0930f2c5350f622973d (patch) | |
tree | a0fa332f16dc3454cf87aaff42171086204c2f03 | |
parent | f940c42e563e67279cc28c7c129a340dc800fd30 (diff) | |
parent | b5ed6de313d084121925e43ceb09e936ef31d2a3 (diff) |
Merge "Using the --chown flag to reduce image size"
-rw-r--r-- | deployments/Dockerfile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/deployments/Dockerfile b/deployments/Dockerfile index 961f6766..1dcb5a30 100644 --- 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"] |