-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile.neo4j
46 lines (36 loc) · 913 Bytes
/
Dockerfile.neo4j
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#
# Neo4j building Dockerfile
#
# https://github.com/InstantWebP2P/appnet.link-controller
# Copyright (c) 2020 Tom Zhou<[email protected]>
# Pull base image.
FROM ubuntu:16.04
# Install.
RUN \
apt-get -y update && \
apt-get install -y git tar maven
# Building
RUN \
cd /tmp && \
git clone -b unix-2.1.8 --depth 1 https://github.com/sequoiar/v2neo4j && \
\
cd v2neo4j/packaging/standalone && \
mvn clean package -Dlicense.skip -Dlicensing.skip && \
\
mkdir -p /appins && \
tar xvzf target/neo4j-community-2.1.8-unix.tar.gz -C /appins/ && \
cp -rf target/* /tmp/
FROM ubuntu:16.04
# Install.
RUN \
apt-get -y update && \
apt-get install -y openjdk-8-jre
# Add files.
COPY --from=0 /appins/* /appins/
COPY --from=0 /tmp/*tar* /tmp/
# Set environment variables.
ENV HOME /root
# Define working directory.
WORKDIR /appins
# Define default command.
CMD ["./bin/neo4j", "console"]