forked from ajinabraham/nodejsscan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (25 loc) · 811 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
FROM postgres:9.6.2-alpine
LABEL authors="Cristobal Infantes <[email protected]>" \
maintainer="Ajin Abraham <[email protected]>" \
description="Static Security Code Scanner for Node.js Applications"
EXPOSE 9090
ENV POSTGRES_USER root
ENV POSTGRES_DB nodejsscan
RUN cd /usr/src \
&& apk add --update \
python3 \
python3-dev \
build-base \
git \
&& python3 -m ensurepip \
&& git clone https://github.com/ajinabraham/NodeJsScan.git \
&& cd NodeJsScan \
&& sed -i -e s/postgresql:\\/\\/localhost\\/nodejsscan/postgresql:\\/\\/127.0.0.1\\/nodejsscan/g core/settings.py \
&& pip3 install -r requirements.txt \
&& apk del python3-dev \
build-base \
git \
&& rm -rf /var/cache/apk/*
ADD start.sh /usr/src/NodeJsScan
WORKDIR /usr/src/NodeJsScan
CMD ["sh","start.sh"]