move docker stuff

This commit is contained in:
Christian Mehlmauer
2016-08-13 10:24:02 +02:00
parent e942a5bcf6
commit c6df6e0e89
2 changed files with 41 additions and 0 deletions

23
Dockerfile Normal file
View File

@@ -0,0 +1,23 @@
FROM ruby:2.3-slim
MAINTAINER WPScan Team <team@wpscan.org>
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"]