Dockerfile 880 B

1234567891011121314151617181920212223242526272829303132
  1. FROM solr:7.7-slim
  2. USER root
  3. # renovate: datasource=github-releases depName=tianon/gosu versioning=semver-coerced extractVersion=(?<version>.*)$
  4. ARG GOSU_VERSION=1.17
  5. COPY solr.sh /
  6. COPY solr-config-7.7.0.xml /
  7. COPY solr-schema-7.7.0.xml /
  8. RUN dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
  9. && wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch" \
  10. && chmod +x /usr/local/bin/gosu \
  11. && gosu nobody true \
  12. && apt-get update && apt-get install -y --no-install-recommends \
  13. tzdata \
  14. curl \
  15. bash \
  16. zip \
  17. && apt-get autoclean \
  18. && rm -rf /var/lib/apt/lists/* \
  19. && chmod +x /solr.sh \
  20. && sync \
  21. && bash /solr.sh --bootstrap
  22. RUN zip -q -d /opt/solr/server/lib/ext/log4j-core-*.jar org/apache/logging/log4j/core/lookup/JndiLookup.class
  23. RUN apt remove zip -y
  24. CMD ["/solr.sh"]