blob: dd465b4d449e39d0d178c93eed779e9fc4a71d4d [file] [log] [blame]
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +01001FROM solr:7.7-slim
2
3USER root
4
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +01005# renovate: datasource=github-releases depName=tianon/gosu versioning=semver-coerced extractVersion=^v(?<version>.*)$
6ARG GOSU_VERSION=1.16
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +01007
8COPY solr.sh /
9COPY solr-config-7.7.0.xml /
10COPY solr-schema-7.7.0.xml /
11
12RUN dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
13 && wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch" \
14 && chmod +x /usr/local/bin/gosu \
15 && gosu nobody true \
16 && apt-get update && apt-get install -y --no-install-recommends \
17 tzdata \
18 curl \
19 bash \
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010020 zip \
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010021 && apt-get autoclean \
22 && rm -rf /var/lib/apt/lists/* \
23 && chmod +x /solr.sh \
24 && sync \
25 && bash /solr.sh --bootstrap
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010026
27RUN zip -q -d /opt/solr/server/lib/ext/log4j-core-*.jar org/apache/logging/log4j/core/lookup/JndiLookup.class
28
29RUN apt remove zip -y
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010030
31CMD ["/solr.sh"]