reduce docker layers and support test data
This commit is contained in:
15
Dockerfile
15
Dockerfile
@ -2,10 +2,10 @@ FROM centos:latest
|
|||||||
|
|
||||||
MAINTAINER Justin Henderson justin@hasecuritysolutions.com
|
MAINTAINER Justin Henderson justin@hasecuritysolutions.com
|
||||||
|
|
||||||
RUN yum update -y
|
RUN yum update -y && \
|
||||||
RUN yum install -y python python-devel git gcc
|
yum install -y python python-devel git gcc && \
|
||||||
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
|
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
|
||||||
RUN python get-pip.py
|
python get-pip.py
|
||||||
|
|
||||||
WORKDIR /opt/VulnWhisperer
|
WORKDIR /opt/VulnWhisperer
|
||||||
|
|
||||||
@ -15,12 +15,13 @@ COPY vulnwhisp/ vulnwhisp/
|
|||||||
COPY bin/ bin/
|
COPY bin/ bin/
|
||||||
COPY configs/frameworks_example.ini frameworks_example.ini
|
COPY configs/frameworks_example.ini frameworks_example.ini
|
||||||
|
|
||||||
RUN python setup.py clean --all
|
RUN python setup.py clean --all && \
|
||||||
RUN pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
|
|
||||||
|
|
||||||
WORKDIR /opt/VulnWhisperer
|
WORKDIR /opt/VulnWhisperer
|
||||||
RUN python setup.py install
|
RUN python setup.py install && \
|
||||||
|
ln -s /opt/VulnWhisperer /tmp/VulnWhisperer
|
||||||
|
|
||||||
|
|
||||||
CMD vuln_whisperer -c /opt/VulnWhisperer/frameworks_example.ini
|
CMD vuln_whisperer -c /opt/VulnWhisperer/frameworks_example.ini
|
||||||
|
Reference in New Issue
Block a user