Remove runtime dependencies from build stage
This commit is contained in:
@@ -9,10 +9,8 @@ RUN echo "gem: --no-ri --no-rdoc" > /etc/gemrc
|
|||||||
COPY . /wpscan
|
COPY . /wpscan
|
||||||
RUN chown -R wpscan:wpscan /wpscan
|
RUN chown -R wpscan:wpscan /wpscan
|
||||||
|
|
||||||
# runtime dependencies
|
|
||||||
RUN apk add --no-cache libcurl procps sqlite-libs && \
|
|
||||||
# build dependencies
|
# build dependencies
|
||||||
apk add --no-cache --virtual build-deps git libcurl ruby-dev libffi-dev make gcc musl-dev zlib-dev procps sqlite-dev && \
|
RUN apk add --no-cache --virtual build-deps git libcurl ruby-dev libffi-dev make gcc musl-dev zlib-dev procps sqlite-dev && \
|
||||||
bundle install --system --gemfile=/wpscan/Gemfile $BUNDLER_ARGS && \
|
bundle install --system --gemfile=/wpscan/Gemfile $BUNDLER_ARGS && \
|
||||||
apk del --no-cache build-deps
|
apk del --no-cache build-deps
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user