From c6df6e0e891ad36e68349d23804edc8cf69c7fa1 Mon Sep 17 00:00:00 2001 From: Christian Mehlmauer Date: Sat, 13 Aug 2016 10:24:02 +0200 Subject: [PATCH] move docker stuff --- .dockerignore | 18 ++++++++++++++++++ Dockerfile | 23 +++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..a26029cc --- /dev/null +++ b/.dockerignore @@ -0,0 +1,18 @@ +git/ +bundle/ +.idea/ +.yardoc/ +cache/ +coverage/ +spec/ +dev/ +.* +**/*.md +*.md +Dockerfile +**/*.orig +*.orig +CREDITS +data.zip +DISCLAIMER.txt +example.conf.json diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..d375af97 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,23 @@ +FROM ruby:2.3-slim +MAINTAINER WPScan Team + +RUN DEBIAN_FRONTEND=noninteractive && \ + apt-get update && \ + apt-get -qq -y install curl git ca-certificates openssl libcurl4-openssl-dev libxml2 libxml2-dev libxslt1-dev build-essential procps + +RUN useradd -d /wpscan wpscan +RUN echo "gem: --no-ri --no-rdoc" > /etc/gemrc +RUN mkdir /wpscan + +COPY . /wpscan + +WORKDIR /wpscan + +RUN bundle install --without test +RUN chown -R wpscan:wpscan /wpscan + +USER wpscan +RUN /wpscan/wpscan.rb --update + +ENTRYPOINT ["/wpscan/wpscan.rb"] +CMD ["--help"]