blob: 6dfec41f75505cf368db6b50b11b252fdbec688b [file] [log] [blame]
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +01001FROM solr:7.7-slim
2
3USER root
4
5ENV GOSU_VERSION 1.11
6
7COPY solr.sh /
8COPY solr-config-7.7.0.xml /
9COPY solr-schema-7.7.0.xml /
10
11RUN 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
25CMD ["/solr.sh"]