Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 1 | FROM solr:7.7-slim |
| 2 | |
| 3 | USER root |
| 4 | |
Matthias Andreas Benkard | d1f5b68 | 2023-11-18 13:18:30 +0100 | [diff] [blame] | 5 | # renovate: datasource=github-releases depName=tianon/gosu versioning=semver-coerced extractVersion=^v(?<version>.*)$ |
| 6 | ARG GOSU_VERSION=1.16 |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 7 | |
| 8 | COPY solr.sh / |
| 9 | COPY solr-config-7.7.0.xml / |
| 10 | COPY solr-schema-7.7.0.xml / |
| 11 | |
| 12 | RUN 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 Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 20 | zip \ |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 21 | && apt-get autoclean \ |
| 22 | && rm -rf /var/lib/apt/lists/* \ |
| 23 | && chmod +x /solr.sh \ |
| 24 | && sync \ |
| 25 | && bash /solr.sh --bootstrap |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 26 | |
| 27 | RUN zip -q -d /opt/solr/server/lib/ext/log4j-core-*.jar org/apache/logging/log4j/core/lookup/JndiLookup.class |
| 28 | |
| 29 | RUN apt remove zip -y |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 30 | |
| 31 | CMD ["/solr.sh"] |