summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBin Yang <bin.yang@windriver.com>2022-03-01 15:27:08 +0800
committerBin Yang <bin.yang@windriver.com>2022-03-01 15:27:08 +0800
commit38e915a233dc957dc32e6394a8c43397adebdfea (patch)
tree98851a60a307fda1bfaa575479f1cc2f0ca0d6e6
parent091e2b38db978bceffcd3534f797fd6fa25fa970 (diff)
Try to remove GPLv3 package from multivimbroker docker image
Issue-ID: MULTICLOUD-1224 Signed-off-by: Bin Yang <bin.yang@windriver.com> Change-Id: I4918b07ee74dbf00762018eaa2e08b48d087db04
-rw-r--r--multivimbroker/docker/Dockerfile5
1 files changed, 3 insertions, 2 deletions
diff --git a/multivimbroker/docker/Dockerfile b/multivimbroker/docker/Dockerfile
index 5f74cf3..4e54448 100644
--- a/multivimbroker/docker/Dockerfile
+++ b/multivimbroker/docker/Dockerfile
@@ -15,13 +15,14 @@ RUN addgroup -S onap && adduser -S -G onap onap
COPY ./multicloud-framework-broker-*.zip /opt/multicloud-framework.zip
RUN apk update && \
- apk add uwsgi wget unzip gcc make libc-dev libffi-dev openssl-dev && \
+ apk add --no-cache uwsgi && \
+ apk add --no-cache --virtual .build-deps wget unzip gcc make libc-dev libffi-dev openssl-dev && \
cd /opt/ && \
unzip -q -o -B multicloud-framework.zip && \
rm -f multicloud-framework.zip && \
pip3 install -r /opt/multivimbroker/requirements.txt && \
pip3 install -r /opt/multivimbroker/uwsgi-requirements.txt && \
- apk del wget unzip gcc make libc-dev libffi-dev openssl-dev && \
+ apk del --no-network .build-deps && \
mkdir -p /var/log/onap/multicloud/multivimbroker && \
chown onap:onap /var/log/onap -R && \
chown onap:onap /opt/multivimbroker -R