forked from ajinabraham/nodejsscan
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (23 loc) · 670 Bytes
/
Copy pathDockerfile
File metadata and controls
28 lines (23 loc) · 670 Bytes
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
FROM postgres:9.6.2-alpine
LABEL authors="Cristobal Infantes <[email protected]>"
EXPOSE 9090
ENV POSTGRES_USER root
ENV POSTGRES_DB nodejsscan
RUN cd /usr/src \
&& apk add --update \
python \
python-dev \
py-pip \
build-base \
git \
&& 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 \
&& pip install -r requirements.txt \
&& apk del python-dev \
build-base \
git \
&& rm -rf /var/cache/apk/*
ADD start.sh /usr/src/NodeJsScan
WORKDIR /usr/src/NodeJsScan
CMD ["sh","start.sh"]