aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-be/sdc-backend-init/Dockerfile
diff options
context:
space:
mode:
authorvasraz <vasyl.razinkov@est.tech>2021-11-29 17:42:02 +0000
committerMichael Morris <michael.morris@est.tech>2021-12-07 09:30:30 +0000
commit987fc74925dc4051f08913393924d2b826d7e59c (patch)
tree50ed0e7ee1e9105af8fc8190aac4ac660ba6aa4c /catalog-be/sdc-backend-init/Dockerfile
parent5c9d068e66264be8db6018cb551db7c05e8e2596 (diff)
Fix vulnerable dependency
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-3795 Change-Id: Ib6f7902b2f8380ad9febcc2fad0374e8070af15c
Diffstat (limited to 'catalog-be/sdc-backend-init/Dockerfile')
-rw-r--r--catalog-be/sdc-backend-init/Dockerfile19
1 files changed, 7 insertions, 12 deletions
diff --git a/catalog-be/sdc-backend-init/Dockerfile b/catalog-be/sdc-backend-init/Dockerfile
index 35e485b197..8f6da77d19 100644
--- a/catalog-be/sdc-backend-init/Dockerfile
+++ b/catalog-be/sdc-backend-init/Dockerfile
@@ -18,16 +18,13 @@ RUN apk update && \
libxml2-dev \
build-base \
curl-dev && \
- # needed libcurl to install correctly
- pip install 'pycurl==7.43.0.1' && \
- set -ex && \
- gem install \
- chef:13.8.5 \
- berkshelf:6.3.1 \
- io-console:0.4.6 \
- etc webrick \
- --no-document && \
- apk del .build-dependencies
+ # needed libcurl to install correctly \
+ python -m pip install --upgrade pip \
+ pip install 'pycurl==7.44.1' && \
+ set -ex && \
+ gem install chef:13.8.5 berkshelf:6.3.1 io-console:0.4.6 etc webrick --no-document && \
+ apk del .build-dependencies && \
+ gem cleanup
ENV ONAP_LOG=/home/onap/logs
RUN mkdir $ONAP_LOG && chown onap:onap $ONAP_LOG
@@ -47,9 +44,7 @@ RUN chmod 770 -R /home/onap/scripts && \
ENV PATH=$PATH:/home/onap/.local/bin
COPY --chown=onap:onap chef-solo /home/onap/chef-solo/
-
COPY --chown=onap:onap chef-repo/cookbooks /home/onap/chef-solo/cookbooks/
-
COPY --chown=onap:onap startup.sh /home/onap/
RUN chmod 770 /home/onap/startup.sh