2019-07-28 21:35:10 +02:00
|
|
|
FROM solr:7.7-slim
|
|
|
|
|
2019-01-16 10:50:34 +01:00
|
|
|
USER root
|
2019-07-28 21:35:10 +02:00
|
|
|
|
|
|
|
ENV GOSU_VERSION 1.11
|
|
|
|
|
2019-10-18 12:01:47 +02:00
|
|
|
COPY solr.sh /
|
2019-03-12 23:15:26 +01:00
|
|
|
COPY solr-config-7.7.0.xml /
|
|
|
|
COPY solr-schema-7.7.0.xml /
|
|
|
|
|
2019-07-28 21:35:10 +02:00
|
|
|
RUN dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
|
|
|
|
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch" \
|
|
|
|
&& chmod +x /usr/local/bin/gosu \
|
|
|
|
&& gosu nobody true \
|
|
|
|
&& apt-get update && apt-get install -y --no-install-recommends \
|
|
|
|
tzdata \
|
|
|
|
curl \
|
|
|
|
bash \
|
2021-12-17 12:43:05 +01:00
|
|
|
zip \
|
2019-07-28 21:35:10 +02:00
|
|
|
&& apt-get autoclean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
2019-10-18 12:01:47 +02:00
|
|
|
&& chmod +x /solr.sh \
|
2019-02-15 07:04:53 +01:00
|
|
|
&& sync \
|
2019-10-18 12:01:47 +02:00
|
|
|
&& bash /solr.sh --bootstrap
|
2021-12-17 12:43:05 +01:00
|
|
|
|
|
|
|
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
|
2019-01-16 10:50:34 +01:00
|
|
|
|
2019-10-18 12:01:47 +02:00
|
|
|
CMD ["/solr.sh"]
|