2019-07-29 03:35:10 +08:00
|
|
|
FROM solr:7.7-slim
|
|
|
|
|
2019-01-16 17:50:34 +08:00
|
|
|
USER root
|
2019-07-29 03:35:10 +08:00
|
|
|
|
|
|
|
ENV GOSU_VERSION 1.11
|
|
|
|
|
2019-01-16 17:50:34 +08:00
|
|
|
COPY docker-entrypoint.sh /
|
2019-03-13 06:15:26 +08:00
|
|
|
COPY solr-config-7.7.0.xml /
|
|
|
|
COPY solr-schema-7.7.0.xml /
|
|
|
|
|
2019-07-29 03:35:10 +08:00
|
|
|
RUN dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
|
|
|
|
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch" \
|
|
|
|
&& chmod +x /usr/local/bin/gosu \
|
|
|
|
&& gosu nobody true \
|
|
|
|
&& apt-get update && apt-get install -y --no-install-recommends \
|
|
|
|
tzdata \
|
|
|
|
curl \
|
|
|
|
bash \
|
|
|
|
&& apt-get autoclean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
2019-01-16 17:50:34 +08:00
|
|
|
&& chmod +x /docker-entrypoint.sh \
|
2019-02-15 14:04:53 +08:00
|
|
|
&& sync \
|
2019-03-13 06:15:26 +08:00
|
|
|
&& bash /docker-entrypoint.sh --bootstrap
|
2019-01-16 17:50:34 +08:00
|
|
|
|
|
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|