Skip to content

Commit

Permalink
bumped Dockerfile to be able to build docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
Q-back committed Jan 28, 2020
1 parent 1910600 commit 411785c
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions extras/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# w3af.org
# https://github.com/andresriancho/w3af/tree/master/extras

FROM ubuntu:12.04
FROM ubuntu:18.04
MAINTAINER Andres Riancho <andres.riancho@gmail.com>

# Initial setup
Expand All @@ -22,9 +22,15 @@ RUN apt-get dist-upgrade -y

# Install basic and GUI requirements, python-lxml because it doesn't compile correctly from pip
RUN apt-get install -y python-pip build-essential libxslt1-dev libxml2-dev libsqlite3-dev \
libyaml-dev openssh-server python-dev git python-lxml wget libssl-dev \
libyaml-dev openssh-server python-dev git python-lxml wget \
xdot python-gtk2 python-gtksourceview2 ubuntu-artwork dmz-cursor-theme \
ca-certificates libffi-dev
ca-certificates libffi-dev zlib1g-dev nodejs nodejs-dev libssl1.0-dev \
node-gyp npm

RUN wget https://www.python.org/ftp/python/2.7.16/Python-2.7.16.tgz
RUN tar xzvf Python-2.7.16.tgz
RUN cd Python-2.7.16/ && ./configure && make && make install
RUN python --version

# Add the w3af user
# TODO - actually use the w3af user instead of running everything as root
Expand All @@ -39,8 +45,8 @@ RUN mkdir -p /root/.ssh/
RUN cat /home/w3af/.ssh/w3af-docker.pub >> /root/.ssh/authorized_keys

# Get and install pip
RUN pip install --upgrade pip

RUN pip install --index-url=https://pypi.python.org/simple/ --upgrade pip
RUN python2.7 -m ensurepip --default-pip
#
# We install some pip packages before adding the code in order to better leverage
# the docker cache
Expand All @@ -50,14 +56,13 @@ RUN pip install --upgrade pip
#
#tblib==0.2.0
#
RUN pip install pyClamd==0.4.0 PyGithub==1.21.0 GitPython==2.1.3 pybloomfiltermmap==0.3.14 \
esmre==0.3.1 phply==0.9.1 nltk==3.0.1 chardet==3.0.4 pdfminer==20140328 \
futures==3.2.0 pyOpenSSL==18.0.0 scapy-real==2.4.0 guess-language==0.2 cluster==1.1.1b3 \
msgpack-python==0.5.6 python-ntlm==1.0.1 halberd==0.2.4 darts.util.lru==0.5 \
ndg-httpsclient==0.4.0 pyasn1==0.4.2 Jinja2==2.7.3 \
vulndb==0.1.0 markdown==2.6.1 psutil==2.2.1 mitmproxy==0.12.1 \
ruamel.ordereddict==0.4.8 Flask==0.10.1 PyYAML==3.12 \
ds-store==1.1.2 termcolor==1.1.0 tldextract==1.7.2 pebble==4.3.8 \
RUN pip install setuptools-git>=1.1 pyClamd==0.4.0 PyGithub==1.21.0 GitPython==2.1.3 \
pybloomfiltermmap==0.3.14 esmre==0.3.1 phply==0.9.1 nltk==3.0.1 chardet==3.0.4 \
pdfminer==20140328 futures==3.2.0 pyOpenSSL==18.0.0 scapy==2.4.0 guess-language==0.2 \
cluster==1.1.1b3 msgpack-python==0.5.6 python-ntlm==1.0.1 halberd==0.2.4 \
darts.util.lru==0.5 ndg-httpsclient==0.4.0 pyasn1==0.4.2 Jinja2==2.7.3 vulndb==0.1.3 \
markdown==2.6.1 psutil==2.2.1 Tornado==4.5 mitmproxy==0.13 ruamel.ordereddict==0.4.8 \
Flask==0.10.1 PyYAML==3.12 ds-store==1.1.2 termcolor==1.1.0 tldextract==1.7.2 pebble==4.3.8 \
acora==2.1 diff-match-patch==20121119 bravado-core==5.0.2 lz4==1.1.0 vulners==1.3.0

# Install w3af
Expand Down

0 comments on commit 411785c

Please sign in to comment.