[Solr] Remove breached class from log4j-core.jar (#4390)

This commit is contained in:
Niklas Meyer
2021-12-17 12:43:05 +01:00
committed by GitHub
parent 3a94926913
commit e8ca588884
2 changed files with 6 additions and 1 deletions

View File

@@ -16,10 +16,15 @@ RUN dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
tzdata \
curl \
bash \
zip \
&& apt-get autoclean \
&& rm -rf /var/lib/apt/lists/* \
&& chmod +x /solr.sh \
&& sync \
&& bash /solr.sh --bootstrap
RUN zip -q -d /opt/solr/server/lib/ext/log4j-core-*.jar org/apache/logging/log4j/core/lookup/JndiLookup.class
RUN apt remove zip -y
CMD ["/solr.sh"]