IMAGE solr LAYER shared/alpine LAYER shared/java LAYER solr/solr SCRIPT # Install runtime dependencies apk --no-cache add bash lsof # Download and install Solr mkdir /opt wget http://archive.apache.org/dist/lucene/solr/6.5.1/solr-6.5.1.tgz -O - | tar xzf - -C /opt/ mv /opt/solr-6.5.1 /opt/solr # Create OS user addgroup -S -g 8983 solr adduser -S -u 8983 -h /var/lib/solr -s /bin/false -g solr -G solr solr chown -R solr:solr /opt/solr/ # Copy basic configuration file to data location cp -p /opt/solr/server/solr/solr.xml /var/lib/solr/solr.xml RUN MOUNT /srv/solr/data var/lib/solr USER 8983 8983 CMD /opt/solr/bin/solr start -f