@@ -18,6 +18,7 @@ RUN apt-get update \
18
18
zlib1g-dev
19
19
20
20
RUN apt -y update
21
+
21
22
22
23
ARG OPENSSL_VERSION=1.1.1q
23
24
ARG PYTHON=python3
@@ -69,17 +70,27 @@ RUN find / -depth -name surefire -type d -exec rm -r "{}" \;
69
70
# comment out if need to use maven utilities
70
71
RUN rm /usr/share/java/maven-shared-utils.jar
71
72
73
+ # remove wagon-http-shaded jar file with vulnerabilities associated with org.jsoup:jsoup
74
+ RUN rm /usr/share/java/wagon-http-shaded-3.3.4.jar
75
+
72
76
# remove plexus-utils directory because plexus-utils has vulnerabilities
73
77
# comment out if need to use maven utilities
74
78
RUN find / -depth -name plexus-utils -type d -exec rm -r "{}" \;
75
79
76
80
# remove old version of json-smart with vulnerability
77
- RUN find / -depth -name json-smart -type d -exec rm -r "{}/2.3" \;
81
+ # RUN find / -depth -name json-smart -type d -exec rm -r "{}/2.3" \;
78
82
79
83
# remove old version of commons-compress with vulnerability
80
- RUN find / -depth -name commons-compress -type d -exec rm -r "{}/1.18" \;
84
+ RUN find / -depth -name commons-compress -type d -exec rm -r "{}/1.20" \;
85
+
86
+ # remove jar files from common-io v2.5 and 2.6 both have vulnerabilities
87
+ RUN find / -name commons-io*2.5.jar -type f -exec rm "{}" \;
88
+ RUN find / -name commons-io*2.6.jar -type f -exec rm "{}" \;
81
89
82
90
# remove old version of spring-core with vulnerability
83
- RUN find / -depth -name spring-core -type d -exec rm -r "{}/5.1.19.RELEASE" \;
91
+ # RUN find / -depth -name spring-core -type d -exec rm -r "{}/5.1.19.RELEASE" \;
92
+
93
+ # remove jackson-databind
94
+ RUN find / -name jackson-databind -type d -exec rm -r "{}/2.13.3" \;
84
95
85
96
ENTRYPOINT ["/usr/local/bin/serve.sh" ]
0 commit comments