# # Copyright (C) 2018 XueTong Tech., Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # FROM registry.cn-hangzhou.aliyuncs.com/schbrain/jdk:8u172 MAINTAINER xt ENV NEO4J_EDITION=community #ARG NEO4J_URI=http://dist.neo4j.org/neo4j-community-3.4.0-unix.tar.gz ADD neo4j-community-3.4.0-unix.tar.gz /var/lib RUN groupadd neo4j && useradd -d /var/lib/neo4j -g neo4j neo4j \ && mv /var/lib/neo4j-* /var/lib/neo4j \ && mv /var/lib/neo4j/data /data \ && chown -R neo4j:neo4j /data \ && chmod -R 777 /data \ && chown -R neo4j:neo4j /var/lib/neo4j \ && chmod -R 777 /var/lib/neo4j \ && ln -s /data /var/lib/neo4j/data ENV PATH /var/lib/neo4j/bin:$PATH WORKDIR /var/lib/neo4j VOLUME /data COPY bin/tini /bin/tini COPY docker-entrypoint.sh /docker-entrypoint.sh EXPOSE 7474 7473 7687 ENTRYPOINT ["/bin/tini", "-g", "--", "/docker-entrypoint.sh"] CMD ["neo4j"]