forked from PaytmLabs/nerve
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
46 lines (36 loc) · 1.08 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
FROM centos:7
ARG TARGET_FOLDER=/opt/nervana
RUN yum install epel-release -y && \
yum update -y && \
yum install -y gcc && \
yum install -y redis && \
yum install -y python3 && \
yum install -y python3-pip && \
yum install -y python3-devel && \
yum install -y wget && \
yum clean all
RUN wget https://nmap.org/dist/nmap-7.90-1.x86_64.rpm
RUN rpm -ivh nmap-*.x86_64.rpm
RUN mkdir /opt/nervana
ADD bin $TARGET_FOLDER/bin
ADD core $TARGET_FOLDER/core
ADD db $TARGET_FOLDER/db
ADD install $TARGET_FOLDER/install
ADD logs $TARGET_FOLDER/logs
ADD reports $TARGET_FOLDER/reports
ADD rules $TARGET_FOLDER/rules
ADD static $TARGET_FOLDER/static
ADD templates $TARGET_FOLDER/templates
ADD views $TARGET_FOLDER/views
ADD views_api $TARGET_FOLDER/views_api
COPY config.py $TARGET_FOLDER
COPY main.py $TARGET_FOLDER
COPY requirements.txt $TARGET_FOLDER
COPY start.sh $TARGET_FOLDER
COPY version.py $TARGET_FOLDER
WORKDIR $TARGET_FOLDER/
RUN pip3 install --user -r requirements.txt
RUN chmod 755 main.py
RUN chmod 755 start.sh
ENTRYPOINT ["/opt/nervana/start.sh"]
EXPOSE 8080/tcp