forked from WithSecureLabs/awspx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (28 loc) · 861 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
32
33
FROM neo4j:4.3.2-community
COPY . /opt/awspx
WORKDIR /opt/awspx
ENV NEO4J_AUTH=neo4j/password
ENV EXTENSION_SCRIPT=/opt/awspx/INSTALL
RUN apt -y update && apt install -y \
awscli \
nodejs \
npm \
python3-pip \
procps \
git \
&& rm -rf /var/lib/apt/lists/* \
&& pip3 install --upgrade \
argparse \
awscli \
boto3 \
configparser \
git-python \
neo4j \
rich \
&& npm install -g npm@latest
RUN cd /opt/awspx/www && npm install
RUN gosu neo4j wget -q --timeout 300 --tries 30 --output-document=/var/lib/neo4j/plugins/apoc.jar \
https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/download/4.3.0.0/apoc-4.3.0.0-all.jar \
&& chmod 644 /var/lib/neo4j/plugins/apoc.jar
VOLUME /opt/awspx/data
EXPOSE 7373 7474 7687 80