21 lines
607 B
Docker
21 lines
607 B
Docker
FROM alpine:3.7
|
|
MAINTAINER Disassembler <disassembler@dasm.cz>
|
|
|
|
RUN apk --no-cache add openjdk8-jre-base
|
|
|
|
RUN apk --no-cache add bash lsof \
|
|
&& wget http://archive.apache.org/dist/lucene/solr/6.5.1/solr-6.5.1.tgz -O /tmp/solr-6.5.1.tgz \
|
|
&& tar xzf /tmp/solr-6.5.1.tgz -C /srv/ \
|
|
&& mv /srv/solr-6.5.1 /srv/solr \
|
|
&& rm -f /tmp/solr-6.5.1.tgz \
|
|
&& addgroup -S solr \
|
|
&& adduser -S -h /srv/solr -H -s /bin/sh -g solr -G solr solr \
|
|
&& chown -R solr:solr /srv/solr/ \
|
|
&& ln -s /srv/solr/bin/solr /usr/local/bin/solr
|
|
|
|
VOLUME ["/srv/solr/server/solr"]
|
|
EXPOSE 8983
|
|
|
|
USER solr
|
|
CMD ["solr", "start", "-f"]
|