Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 1 | FROM solr:7.7-slim |
| 2 | |
| 3 | USER root |
| 4 | |
| 5 | ENV GOSU_VERSION 1.11 |
| 6 | |
| 7 | COPY solr.sh / |
| 8 | COPY solr-config-7.7.0.xml / |
| 9 | COPY solr-schema-7.7.0.xml / |
| 10 | |
| 11 | RUN dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \ |
| 12 | && wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch" \ |
| 13 | && chmod +x /usr/local/bin/gosu \ |
| 14 | && gosu nobody true \ |
| 15 | && apt-get update && apt-get install -y --no-install-recommends \ |
| 16 | tzdata \ |
| 17 | curl \ |
| 18 | bash \ |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 19 | zip \ |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 20 | && apt-get autoclean \ |
| 21 | && rm -rf /var/lib/apt/lists/* \ |
| 22 | && chmod +x /solr.sh \ |
| 23 | && sync \ |
| 24 | && bash /solr.sh --bootstrap |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 25 | |
| 26 | RUN zip -q -d /opt/solr/server/lib/ext/log4j-core-*.jar org/apache/logging/log4j/core/lookup/JndiLookup.class |
| 27 | |
| 28 | RUN apt remove zip -y |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 29 | |
| 30 | CMD ["/solr.sh"] |