@@ -5,6 +5,7 @@ ENV DEBIAN_FRONTEND=noninteractive
5
5
LABEL com.amazonaws.sagemaker.capabilities.accept-bind-to-port=true
6
6
7
7
RUN apt-get update \
8
+ && apt-get -y upgrade \
8
9
&& apt-get -y install apt-utils \
9
10
net-tools \
10
11
apt-transport-https \
@@ -77,20 +78,26 @@ RUN rm /usr/share/java/wagon-http-shaded-3.3.4.jar
77
78
# comment out if need to use maven utilities
78
79
RUN find / -depth -name plexus-utils -type d -exec rm -r "{}" \;
79
80
80
- # remove old version of json-smart with vulnerability
81
- # RUN find / -depth -name json-smart -type d -exec rm -r "{}/2.3" \;
82
-
83
81
# remove old version of commons-compress with vulnerability
84
82
RUN find / -depth -name commons-compress -type d -exec rm -r "{}/1.20" \;
85
83
86
84
# remove jar files from common-io v2.5 and 2.6 both have vulnerabilities
87
85
RUN find / -name commons-io*2.5.jar -type f -exec rm "{}" \;
88
86
RUN find / -name commons-io*2.6.jar -type f -exec rm "{}" \;
89
87
90
- # remove old version of spring-core with vulnerability
91
- # RUN find / -depth -name spring-core -type d -exec rm -r "{}/5.1.19.RELEASE" \;
92
-
93
88
# remove jackson-databind
94
89
RUN find / -name jackson-databind -type d -exec rm -r "{}/2.13.3" \;
95
90
91
+ # remove junit-4.12.jar
92
+ RUN find / -name junit-4.12.jar -type f -exec rm "{}" \;
93
+
94
+ # remove maven-compiler-plugin jar from maven repo
95
+ RUN find / -name maven-compiler-plugin*.jar -type f -exec rm "{}" \;
96
+
97
+ # remove guava jar files
98
+ RUN rm /usr/share/java/guava.jar && rm /root/.m2/repository/com/google/guava/guava/10.0.1/guava-10.0.1.jar
99
+
100
+ # remove commons-codec jar
101
+ RUN find / -name commons-codec-1.11.jar -type f -exec rm "{}" \;
102
+
96
103
ENTRYPOINT ["/usr/local/bin/serve.sh" ]
0 commit comments