forked from ajinabraham/nodejsscan
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
20 lines (20 loc) · 740 Bytes
/
Copy pathDockerfile
File metadata and controls
20 lines (20 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
WORKDIR /usr/src/NodeJsScan
COPY requirements.txt requirements.txt
COPY ./core/settings.py ./core/settings.py
RUN apk add --no-cache \
python3=3.5.6-r0 \
python3-dev=3.5.6-r0 \
build-base=0.4-r1 \
&& python3 -m ensurepip \
&& 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
COPY . .
CMD ["sh","start.sh"]