Spotter-VM/solr/Dockerfile

26 lines
846 B
Docker
Raw Normal View History

2017-12-13 10:18:38 +01:00
FROM alpine:3.7
MAINTAINER Disassembler <disassembler@dasm.cz>
2017-12-19 16:31:35 +01:00
RUN apk --no-cache add openjdk8-jre-base paxctl \
&& paxctl -cm /usr/lib/jvm/java-1.8-openjdk/jre/bin/java \
&& paxctl -cm /usr/lib/jvm/java-1.8-openjdk/bin/java \
&& apk del paxctl
2017-12-13 10:18:38 +01:00
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 \
&& mkdir /opt \
&& tar xzf /tmp/solr-6.5.1.tgz -C /opt/ \
&& mv /opt/solr-6.5.1 /opt/solr \
2017-12-13 10:18:38 +01:00
&& rm -f /tmp/solr-6.5.1.tgz \
&& addgroup -S -g 8983 solr \
2017-12-13 16:06:31 +01:00
&& adduser -S -u 8983 -h /var/lib/solr -s /bin/false -g solr -G solr solr \
&& chown -R solr:solr /opt/solr/ \
&& cp -p /opt/solr/server/solr/solr.xml /var/lib/solr/solr.xml \
&& ln -s /opt/solr/bin/solr /usr/local/bin/solr
2017-12-13 10:18:38 +01:00
VOLUME ["/var/lib/solr"]
2017-12-13 10:18:38 +01:00
EXPOSE 8983
USER solr
2017-12-20 09:40:01 +01:00
CMD ["solr", "start", "-f"]