-
Notifications
You must be signed in to change notification settings - Fork 93
/
Dockerfile
31 lines (21 loc) · 901 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
30
31
FROM openjdk:8-jre
RUN apt-get update --quiet --quiet \
&& apt-get install --quiet --quiet --no-install-recommends lsof \
&& rm -rf /var/lib/apt/lists/*
ENV NEO4J_SHA256 e12b962b01f5e3d1ab72f52aa311cfb270557ebca13874efb049b15b0cbfa471
ENV NEO4J_TARBALL neo4j-enterprise-2.3.5-unix.tar.gz
ARG NEO4J_URI=http://dist.neo4j.org/neo4j-enterprise-2.3.5-unix.tar.gz
COPY ./local-package/* /tmp/
RUN curl --fail --silent --show-error --location --remote-name ${NEO4J_URI} \
&& echo "${NEO4J_SHA256} ${NEO4J_TARBALL}" | sha256sum --check --quiet - \
&& tar --extract --file ${NEO4J_TARBALL} --directory /var/lib \
&& mv /var/lib/neo4j-* /var/lib/neo4j \
&& rm ${NEO4J_TARBALL}
WORKDIR /var/lib/neo4j
RUN mv data /data \
&& ln --symbolic /data
VOLUME /data
COPY docker-entrypoint.sh /docker-entrypoint.sh
EXPOSE 7474 7473
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["neo4j"]