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 \ |
| 19 | && apt-get autoclean \ |
| 20 | && rm -rf /var/lib/apt/lists/* \ |
| 21 | && chmod +x /solr.sh \ |
| 22 | && sync \ |
| 23 | && bash /solr.sh --bootstrap |
| 24 | |
| 25 | CMD ["/solr.sh"] |