[Dockerfiles] Rename some files and create hook points

This commit is contained in:
andryyy
2019-10-18 12:01:47 +02:00
parent b02f73e68e
commit b0711db489
17 changed files with 53 additions and 13 deletions

View File

@@ -4,7 +4,7 @@ USER root
ENV GOSU_VERSION 1.11
COPY docker-entrypoint.sh /
COPY solr.sh /
COPY solr-config-7.7.0.xml /
COPY solr-schema-7.7.0.xml /
@@ -18,8 +18,8 @@ RUN dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
bash \
&& apt-get autoclean \
&& rm -rf /var/lib/apt/lists/* \
&& chmod +x /docker-entrypoint.sh \
&& chmod +x /solr.sh \
&& sync \
&& bash /docker-entrypoint.sh --bootstrap
&& bash /solr.sh --bootstrap
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["/solr.sh"]