From 60d067c421172848b3785e329bf18468e6192a7b Mon Sep 17 00:00:00 2001 From: Christian Mehlmauer Date: Sun, 14 Jun 2020 20:16:14 +0200 Subject: [PATCH] fix docker install --- Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index c327498b..9226faef 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,16 @@ FROM ruby:2.7.1-alpine AS builder LABEL maintainer="WPScan Team " -ARG BUNDLER_ARGS="--jobs=8 --without test development" - -RUN echo "gem: --no-ri --no-rdoc" > /etc/gemrc +RUN echo "install: --no-document --no-post-install-message\nupdate: --no-document --no-post-install-message" > /etc/gemrc COPY . /wpscan RUN apk add --no-cache git libcurl ruby-dev libffi-dev make gcc musl-dev zlib-dev procps sqlite-dev && \ - bundle install --system --clean --no-cache --gemfile=/wpscan/Gemfile $BUNDLER_ARGS && \ - # temp fix for https://github.com/bundler/bundler/issues/6680 - rm -rf /usr/local/bundle/cache + bundle config force_ruby_platform true && \ + bundle config disable_version_check 'true' && \ + bundle config without "test development" && \ + bundle config path.system 'true' && \ + bundle install --gemfile=/wpscan/Gemfile --jobs=8 WORKDIR /wpscan RUN rake install --trace