-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (21 loc) · 912 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Dockerfile for Neo4j with APOC plugin
FROM neo4j:latest
# versions
ARG NEO4J_VERSION=4.0.4
ENV GDS_VERSION=1.2.1
RUN apt-get update; apt-get install -y unzip
# Fetch the GDS Plugin
RUN wget --directory-prefix=/var/lib/neo4j/plugins \
https://s3-eu-west-1.amazonaws.com/com.neo4j.graphalgorithms.dist/graph-data-science/\
neo4j-graph-data-science-${GDS_VERSION}-standalone.zip
WORKDIR /var/lib/neo4j/plugins
RUN unzip neo4j-graph-data-science-${GDS_VERSION}-standalone.zip
# mangle Neo4j config to allow APOC to function
RUN printf "# enable GDS\ndbms.security.procedures.unrestricted=gds.*\ndbms.security.procedures.whitelist=gds.*\ndbms.directories.import=/imports\n" >> /var/lib/neo4j/conf/neo4j.conf
# Create a graph import directory
RUN mkdir /imports \
&& chmod -R 777 /imports
VOLUME /imports
EXPOSE 7474 7473 7687
ENTRYPOINT ["/sbin/tini", "-g", "--", "/docker-entrypoint.sh"]
CMD ["neo4j"]