reduce image size

This commit is contained in:
Christian Mehlmauer
2018-10-04 16:28:21 +02:00
parent 791fce2424
commit 5657735b55

View File

@@ -15,6 +15,10 @@ RUN apk add --no-cache git libcurl ruby-dev libffi-dev make gcc musl-dev zlib-de
WORKDIR /wpscan
RUN rake install --trace
# needed so non superusers can read gems
RUN chmod -R a+r /usr/local/bundle
FROM ruby:2.5-alpine
LABEL maintainer="WPScan Team <team@wpscan.org>"
@@ -26,7 +30,6 @@ RUN chown -R wpscan:wpscan /wpscan
# runtime dependencies
RUN apk add --no-cache libcurl procps sqlite-libs
RUN chmod -R a+r /usr/local/bundle
USER wpscan
RUN /usr/local/bundle/bin/wpscan --update --verbose